diff options
| -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 | ||||
| -rwxr-xr-x | spec/unit/application/secret_agent_spec.rb (renamed from spec/unit/application/configurer_spec.rb) | 6 | ||||
| -rwxr-xr-x | spec/unit/face/secret_agent_spec.rb (renamed from spec/unit/face/configurer_spec.rb) | 4 |
4 files changed, 7 insertions, 9 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) diff --git a/spec/unit/application/configurer_spec.rb b/spec/unit/application/secret_agent_spec.rb index 791a367ea..eba936447 100755 --- a/spec/unit/application/configurer_spec.rb +++ b/spec/unit/application/secret_agent_spec.rb @@ -1,11 +1,11 @@ #!/usr/bin/env rspec require 'spec_helper' -require 'puppet/application/configurer' +require 'puppet/application/secret_agent' require 'puppet/indirector/catalog/rest' require 'puppet/indirector/report/rest' require 'tempfile' -describe "Puppet::Application::Configurer" do +describe "Puppet::Application::Secret_agent" do it "should retrieve and apply a catalog and submit a report" do pending "REVISIT: 2.7 changes broke this, and we want the merge published" @@ -25,7 +25,7 @@ describe "Puppet::Application::Configurer" do Puppet::Util::Log.stubs(:newdestination) - Puppet::Application::Configurer.new.run + Puppet::Application::Secret_agent.new.run @report.status.should == "changed" end diff --git a/spec/unit/face/configurer_spec.rb b/spec/unit/face/secret_agent_spec.rb index 56b45031f..9117ad44d 100755 --- a/spec/unit/face/configurer_spec.rb +++ b/spec/unit/face/secret_agent_spec.rb @@ -3,11 +3,9 @@ require 'spec_helper' require 'puppet/indirector/catalog/rest' require 'tempfile' -describe Puppet::Face[:configurer, '0.0.1'] do +describe Puppet::Face[:secret_agent, '0.0.1'] do describe "#synchronize" do it "should retrieve and apply a catalog and return a report" do - pending "REVISIT: 2.7 changes broke this, and we want the merge published" - dirname = Dir.mktmpdir("puppetdir") Puppet[:vardir] = dirname Puppet[:confdir] = dirname |
