diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-16 04:14:32 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-16 04:14:32 +0000 |
commit | ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59 (patch) | |
tree | 200749a544b99507b6d6ff0347df03aaa7cf82db /lib/puppet/sslcertificates.rb | |
parent | f7116e58714d9c66409acfc836ba271957b1b2af (diff) | |
download | puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.tar.gz puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.tar.xz puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.zip |
making "Type.new" private, and switching to "Type.create", so that i can merge new objects with existing objects and such; converted all files, and tested them
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@674 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/sslcertificates.rb')
-rwxr-xr-x | lib/puppet/sslcertificates.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb index da6853a8c..bc3382ab6 100755 --- a/lib/puppet/sslcertificates.rb +++ b/lib/puppet/sslcertificates.rb @@ -14,7 +14,7 @@ module SSLCertificates def self.mkdir(dir) # this is all a bunch of stupid hackery unless FileTest.exists?(dir) - comp = Puppet::Type::Component.new( + comp = Puppet::Type::Component.create( :name => "certdir creation" ) path = [''] @@ -26,7 +26,7 @@ module SSLCertificates raise "%s exists but is not a directory" % File.join(path) end else - obj = Puppet::Type.type(:file).new( + obj = Puppet::Type.type(:file).create( :name => File.join(path), :mode => "750", :create => "directory" |