summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-21 15:45:28 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-21 16:08:38 -0700
commit27e083151bfd1e167f810ceb38199ded3d8d8be5 (patch)
tree10b203e50e6bd78a3000e52be9ff82f2526b69d7 /lib/puppet
parent3c2f66d56c000d3c28d7752aa74a3574a1f6dc50 (diff)
downloadpuppet-27e083151bfd1e167f810ceb38199ded3d8d8be5.tar.gz
puppet-27e083151bfd1e167f810ceb38199ded3d8d8be5.tar.xz
puppet-27e083151bfd1e167f810ceb38199ded3d8d8be5.zip
(#7181) Rename configurer face to secret_agent.
This is a much more useful public name, especially given the code is aimed to eventually replace the agent entirely. Until then this is pleasant enough to talk about. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/application/secret_agent.rb (renamed from lib/puppet/application/configurer.rb)4
-rw-r--r--lib/puppet/face/secret_agent.rb (renamed from lib/puppet/face/configurer.rb)2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/application/configurer.rb b/lib/puppet/application/secret_agent.rb
index 6e86cd2d4..d704d14b2 100644
--- a/lib/puppet/application/configurer.rb
+++ b/lib/puppet/application/secret_agent.rb
@@ -1,7 +1,7 @@
require 'puppet/application'
require 'puppet/face'
-class Puppet::Application::Configurer < Puppet::Application
+class Puppet::Application::Secret_agent < Puppet::Application
should_parse_config
run_mode :agent
@@ -17,7 +17,7 @@ class Puppet::Application::Configurer < Puppet::Application
end
def run_command
- report = Puppet::Face[:configurer, '0.0.1'].synchronize(Puppet[:certname])
+ report = Puppet::Face[:secret_agent, '0.0.1'].synchronize(Puppet[:certname])
Puppet::Face[:report, '0.0.1'].submit(report)
end
end
diff --git a/lib/puppet/face/configurer.rb b/lib/puppet/face/secret_agent.rb
index 74dfb854e..e2714122d 100644
--- a/lib/puppet/face/configurer.rb
+++ b/lib/puppet/face/secret_agent.rb
@@ -1,6 +1,6 @@
require 'puppet/face'
-Puppet::Face.define(:configurer, '0.0.1') do
+Puppet::Face.define(:secret_agent, '0.0.1') do
action(:synchronize) do
when_invoked do |certname, options|
facts = Puppet::Face[:facts, '0.0.1'].find(certname)