summaryrefslogtreecommitdiffstats
path: root/lib/puppet/ssl.rb
Commit message (Collapse)AuthorAgeFilesLines
* Code smell: Two space indentationMarkus Roberts2010-07-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced 106806 occurances of ^( +)(.*$) with The ruby community almost universally (i.e. everyone but Luke, Markus, and the other eleven people who learned ruby in the 1900s) uses two-space indentation. 3 Examples: The code: end # Tell getopt which arguments are valid def test_get_getopt_args element = Setting.new :name => "foo", :desc => "anything", :settings => Puppet::Util::Settings.new assert_equal([["--foo", GetoptLong::REQUIRED_ARGUMENT]], element.getopt_args, "Did not produce appropriate getopt args") becomes: end # Tell getopt which arguments are valid def test_get_getopt_args element = Setting.new :name => "foo", :desc => "anything", :settings => Puppet::Util::Settings.new assert_equal([["--foo", GetoptLong::REQUIRED_ARGUMENT]], element.getopt_args, "Did not produce appropriate getopt args") The code: assert_equal(str, val) assert_instance_of(Float, result) end # Now test it with a passed object becomes: assert_equal(str, val) assert_instance_of(Float, result) end # Now test it with a passed object The code: end assert_nothing_raised do klass[:Yay] = "boo" klass["Cool"] = :yayness end becomes: end assert_nothing_raised do klass[:Yay] = "boo" klass["Cool"] = :yayness end
* Always using the CA_name constant instead of "ca"Luke Kanies2009-11-201-0/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding 'require' statements as necessary for Puppet::SSL to work.Luke Kanies2008-08-071-0/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* The certificate and key are now correctly interactingLuke Kanies2008-04-151-0/+3
| | | | | with the existing cert/key store. Certificate requests are not yet handled, nor are the ca-specific collections.
* The new SSL classes basically work, but they're notLuke Kanies2008-04-151-0/+3
functionally connected to any kind of indirection.