summaryrefslogtreecommitdiffstats
path: root/ext/module_puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-25 00:43:15 -0500
committerLuke Kanies <luke@madstop.com>2007-09-25 00:43:15 -0500
commit4679f4dcc110e3362b0097efe1d5a416c659611b (patch)
treed8dd9aa3f220c7a1d8e3cb0d486e1a7bba7276f7 /ext/module_puppet
parentc3c3e519219ad80ac07d21c74849fbc4246c9d7a (diff)
parentcdc8ea6e81c1b5eba5ea784bb7079c4c1f3965a4 (diff)
downloadpuppet-4679f4dcc110e3362b0097efe1d5a416c659611b.tar.gz
puppet-4679f4dcc110e3362b0097efe1d5a416c659611b.tar.xz
puppet-4679f4dcc110e3362b0097efe1d5a416c659611b.zip
Merge branch 'indirection' of git://reductivelabs.com/puppet-luke
Diffstat (limited to 'ext/module_puppet')
-rwxr-xr-xext/module_puppet10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/module_puppet b/ext/module_puppet
index cb03b6ef2..52f65b094 100755
--- a/ext/module_puppet
+++ b/ext/module_puppet
@@ -61,7 +61,7 @@ options = [
]
# Add all of the config parameters as valid options.
-Puppet.config.addargs(options)
+Puppet.settings.addargs(options)
result = GetoptLong.new(*options)
@@ -108,7 +108,7 @@ begin
$stderr.puts detail.to_s
end
else
- Puppet.config.handlearg(opt, arg)
+ Puppet.settings.handlearg(opt, arg)
end
}
rescue GetoptLong::InvalidOption => detail
@@ -121,7 +121,7 @@ end
# Now parse the config
if Puppet[:config] and File.exists? Puppet[:config]
- Puppet.config.parse(Puppet[:config])
+ Puppet.settings.parse(Puppet[:config])
end
client = nil
@@ -191,8 +191,8 @@ if parseonly
end
begin
- client.getconfig
- client.apply
+ config = client.getconfig
+ config.apply
rescue => detail
Puppet.err detail
exit(1)