diff options
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 |
