summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/configurer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/interface/configurer.rb')
-rw-r--r--lib/puppet/interface/configurer.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/puppet/interface/configurer.rb b/lib/puppet/interface/configurer.rb
index 42e950fa3..36953baac 100644
--- a/lib/puppet/interface/configurer.rb
+++ b/lib/puppet/interface/configurer.rb
@@ -1,13 +1,15 @@
require 'puppet/interface'
Puppet::Interface.new(:configurer) do
- action(:synchronize) do |certname|
- facts = Puppet::Interface::Facts.find(certname)
+ action(:synchronize) do
+ invoke do |certname|
+ facts = Puppet::Interface::Facts.find(certname)
- catalog = Puppet::Interface::Catalog.download(certname, facts)
+ catalog = Puppet::Interface::Catalog.download(certname, facts)
- report = Puppet::Interface::Catalog.apply(catalog)
+ report = Puppet::Interface::Catalog.apply(catalog)
- report
+ report
+ end
end
end