diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-06-30 12:45:56 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-01 13:48:12 -0700 |
| commit | ebd03113d2c4024a7db603e73ca9f5dab34034c8 (patch) | |
| tree | 983699d3265a1c2599964c0cf8f49fed352a2bba /lib | |
| parent | 697508d65588526a230c5d51daca34ad9f9a1f2b (diff) | |
| download | puppet-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.rb | 12 |
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 |
