Class: PuppetX::Relay::Agent::Job::Once

Inherits:
Base
  • Object
show all
Defined in:
lib/puppet_x/relay/agent/job/once.rb

Instance Method Summary collapse

Methods inherited from Base

#to_job

Constructor Details

#initialize(delegate) ⇒ Once

Returns a new instance of Once.

Parameters:



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