[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
Markus Roberts
Markus at reality.com
Wed Jul 14 10:36:33 UTC 2010
The following commit has been merged in the upstream branch:
commit 74e5bdce3b67a124616977c2e2c78c9506792c8f
Author: Jesse Wolfe <jes5199 at gmail.com>
Date: Fri Jul 2 13:19:12 2010 -0700
[#3172] Fix the arguments to Application::Kick.new, which I had broken
diff --git a/lib/puppet/application/kick.rb b/lib/puppet/application/kick.rb
index 3d0d101..5792ede 100644
--- a/lib/puppet/application/kick.rb
+++ b/lib/puppet/application/kick.rb
@@ -145,7 +145,7 @@ class Puppet::Application::Kick < Puppet::Application
end
end
- def initialize
+ def initialize(*args)
super
@hosts = []
@classes = []
diff --git a/spec/unit/application/kick_spec.rb b/spec/unit/application/kick_spec.rb
index 40bc097..0a530b4 100755
--- a/spec/unit/application/kick_spec.rb
+++ b/spec/unit/application/kick_spec.rb
@@ -16,6 +16,13 @@ describe Puppet::Application::Kick do
Puppet::Util::Log.stubs(:level=)
end
+ describe ".new" do
+ it "should take a command-line object as an argument" do
+ command_line = stub_everything "command_line"
+ lambda{ Puppet::Application::Kick.new( command_line ) }.should_not raise_error
+ end
+ end
+
it "should ask Puppet::Application to not parse Puppet configuration file" do
@kick.should_parse_config?.should be_false
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list