summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-06-30 12:45:56 -0700
committerMarkus Roberts <Markus@reality.com>2010-07-01 13:48:12 -0700
commitebd03113d2c4024a7db603e73ca9f5dab34034c8 (patch)
tree983699d3265a1c2599964c0cf8f49fed352a2bba /lib
parent697508d65588526a230c5d51daca34ad9f9a1f2b (diff)
downloadpuppet-ebd03113d2c4024a7db603e73ca9f5dab34034c8.tar.gz
puppet-ebd03113d2c4024a7db603e73ca9f5dab34034c8.tar.xz
puppet-ebd03113d2c4024a7db603e73ca9f5dab34034c8.zip
[#3172] puppet kick can take hostnames as bare arguments
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/kick.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/puppet/application/kick.rb b/lib/puppet/application/kick.rb
index 0dd4d39ad..3d0d10174 100644
--- a/lib/puppet/application/kick.rb
+++ b/lib/puppet/application/kick.rb
@@ -38,6 +38,7 @@ class Puppet::Application::Kick < Puppet::Application
end
def run_command
+ @hosts += command_line.args
options[:test] ? test : main
end
@@ -143,6 +144,13 @@ class Puppet::Application::Kick < Puppet::Application
exit(12)
end
end
+
+ def initialize
+ super
+ @hosts = []
+ @classes = []
+ @tags = []
+ end
def preinit
[:INT, :TERM].each do |signal|
@@ -156,10 +164,6 @@ class Puppet::Application::Kick < Puppet::Application
options[:fqdn] = true
options[:ignoreschedules] = false
options[:foreground] = false
-
- @hosts = []
- @classes = []
- @tags = []
end
def setup