3 ms·
A couple nitpicks: It looks like their bash snippet for generating a certificate can be replaced with the `openssl_x509` resource from this openssl cookbook [0
by sciurus 12y ago
A couple nitpicks:
It looks like their bash snippet for generating a certificate can be replaced with the `openssl_x509` resource from this openssl cookbook [0].
I'm surprised running `gem update --system` is working without specifying the path [1].
[0] https://github.com/opscode-cookbooks/openssl https://github.com/opscode-cookbooks/openssl
[1] https://docs.getchef.com/resource_bash.html#attributes https://docs.getchef.com/resource_bash.html#attributes
- sandal 12y agoHi, I'm the guy who runs Practicing Ruby. :-) Thanks for the feedback, I've emailed Mathias to let him know about your suggestions. Bug reports, suggestions for improvements, and pull requests related to the cookbook can also be filed directly here: https://github.com/elm-city-craftworks/practicing-ruby-cookbook https://github.com/elm-city-craftworks/practicing-ruby-cookb... Since we've been seeing a lot of traffic from this article, I'd be happy to also answer questions here that HN folks might have about how Practicing Ruby works!
- mlafeldt 12y agoHey, I'm the one who developed the cookbook. The openssl_x509 resource looks interesting. I'm going to take a look at it. Thanks for the link! The bash resource works because it uses the system path by default. We actually no longer use that code, but rather install Ruby PPA packages now: https://github.com/elm-city-craftworks/practicing-ruby-cookbook/blob/master/recipes/_ruby.rb https://github.com/elm-city-craftworks/practicing-ruby-cookb... -Mathias