Class: Whenever::Job::Default
- Inherits:
-
Object
- Object
- Whenever::Job::Default
- Defined in:
- lib/job_types/default.rb
Instance Attribute Summary collapse
-
#at ⇒ Object
Returns the value of attribute at.
-
#cron_log ⇒ Object
Returns the value of attribute cron_log.
-
#no_stderr_redirect ⇒ Object
Returns the value of attribute no_stderr_redirect.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Default
constructor
A new instance of Default.
- #output ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Default
Returns a new instance of Default.
7 8 9 10 11 12 13 14 |
# File 'lib/job_types/default.rb', line 7 def initialize( = {}) @task = [:task] @at = [:at] @cron_log = [:cron_log] @no_stderr_redirect = [:no_stderr_redirect] @environment = [:environment] || :production @path = [:path] || Whenever.path end |
Instance Attribute Details
#at ⇒ Object
Returns the value of attribute at.
5 6 7 |
# File 'lib/job_types/default.rb', line 5 def at @at end |
#cron_log ⇒ Object
Returns the value of attribute cron_log.
5 6 7 |
# File 'lib/job_types/default.rb', line 5 def cron_log @cron_log end |
#no_stderr_redirect ⇒ Object
Returns the value of attribute no_stderr_redirect.
5 6 7 |
# File 'lib/job_types/default.rb', line 5 def no_stderr_redirect @no_stderr_redirect end |
#task ⇒ Object
Returns the value of attribute task.
5 6 7 |
# File 'lib/job_types/default.rb', line 5 def task @task end |
Instance Method Details
#output ⇒ Object
16 17 18 |
# File 'lib/job_types/default.rb', line 16 def output task end |