Class: PuppetX::Relay::Agent::Job::Once
- Defined in:
- lib/puppet_x/relay/agent/job/once.rb
Instance Method Summary collapse
- #handle(job) ⇒ Object
-
#initialize(delegate) ⇒ Once
constructor
A new instance of Once.
Methods inherited from Base
Constructor Details
#initialize(delegate) ⇒ Once
Returns a new instance of Once.
9 10 11 |
# File 'lib/puppet_x/relay/agent/job/once.rb', line 9 def initialize(delegate) @delegate = delegate end |
Instance Method Details
#handle(job) ⇒ Object
13 14 15 16 17 |
# File 'lib/puppet_x/relay/agent/job/once.rb', line 13 def handle(job) @delegate.handle(job) ensure job.disable end |