Class: Runner

Inherits:
IOAble show all
Defined in:
lib/LRH.rb

Direct Known Subclasses

NullRunner, StubRunner

Instance Method Summary collapse

Methods inherited from IOAble

#debug!, #debug?, #get_option, #halt!, #job=, #log, #set_option

Constructor Details

#initializeRunner

Returns a new instance of Runner.



172
173
174
# File 'lib/LRH.rb', line 172

def initialize
    super
end

Instance Method Details

#_finallyObject



185
186
187
188
189
# File 'lib/LRH.rb', line 185

def _finally
    finally do |to_harvest|
        yield to_harvest
    end
end

#_run(target) ⇒ Object



176
177
178
179
180
181
182
183
# File 'lib/LRH.rb', line 176

def _run(target)
    result = run(target)
    if debug?
        log result
    end
    
    return result
end

#finallyObject



191
192
# File 'lib/LRH.rb', line 191

def finally
end

#run(target) ⇒ Object



194
195
196
# File 'lib/LRH.rb', line 194

def run(target)
    return nil
end