Class: Whenever::Job::Runner
Instance Attribute Summary
Attributes inherited from Default
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #output ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 |
# File 'lib/job_types/runner.rb', line 5 def initialize( = {}) super() @file = !![:file] end |
Instance Method Details
#output ⇒ Object
10 11 12 13 |
# File 'lib/job_types/runner.rb', line 10 def output path_required %Q(#{File.join(@path, 'script', 'runner')} -e #{@environment} #{@file ? task : %Q("#{task}") }) end |