Class: Whenever::Job::Default
- Inherits:
-
Object
- Object
- Whenever::Job::Default
- Defined in:
- lib/whenever/job_types/default.rb
Instance Attribute Summary collapse
-
#at ⇒ Object
Returns the value of attribute at.
-
#output ⇒ Object
Returns the value of attribute output.
-
#output_redirection ⇒ Object
Returns the value of attribute output_redirection.
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Default
constructor
A new instance of Default.
Constructor Details
#initialize(options = {}) ⇒ Default
Returns a new instance of Default.
7 8 9 10 11 12 13 14 15 |
# File 'lib/whenever/job_types/default.rb', line 7 def initialize( = {}) @task = [:task] @at = [:at] @framework_env = [:framework_env] || "MERB_ENV" @rake_path = [:rake_path] || "bundle exec rake" @output_redirection = .has_key?(:output) ? [:output] : :not_set @environment = [:environment] || :production @path = [:path] || Whenever.path end |
Instance Attribute Details
#at ⇒ Object
Returns the value of attribute at.
5 6 7 |
# File 'lib/whenever/job_types/default.rb', line 5 def at @at end |
#output ⇒ Object
Returns the value of attribute output.
5 6 7 |
# File 'lib/whenever/job_types/default.rb', line 5 def output @output end |
#output_redirection ⇒ Object
Returns the value of attribute output_redirection.
5 6 7 |
# File 'lib/whenever/job_types/default.rb', line 5 def output_redirection @output_redirection end |
#task ⇒ Object
Returns the value of attribute task.
5 6 7 |
# File 'lib/whenever/job_types/default.rb', line 5 def task @task end |