Class: Puppet::Network::Handler::Runner
- Defined in:
- lib/vendor/puppet/network/handler/runner.rb
Overview
A simple server for triggering a new run on a Puppet client.
Instance Method Summary collapse
-
#run(tags = nil, ignoreschedules = false, fg = true, client = nil, clientip = nil) ⇒ Object
Run the client configuration right now, optionally specifying tags and whether to ignore schedules.
Instance Method Details
#run(tags = nil, ignoreschedules = false, fg = true, client = nil, clientip = nil) ⇒ Object
Run the client configuration right now, optionally specifying tags and whether to ignore schedules
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vendor/puppet/network/handler/runner.rb', line 19 def run( = nil, ignoreschedules = false, fg = true, client = nil, clientip = nil) = {} [:tags] = if [:ignoreschedules] = ignoreschedules if ignoreschedules [:background] = !fg runner = Puppet::Run.new() runner.run runner.status end |