Class: Whenever::Job::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/job_types/default.rb

Direct Known Subclasses

RakeTask, Runner

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @task        = options[:task]
  @at          = options[:at]
  @cron_log    = options[:cron_log]
  @no_stderr_redirect = options[:no_stderr_redirect]
  @environment = options[:environment] || :production
  @path        = options[:path] || Whenever.path
end

Instance Attribute Details

#atObject

Returns the value of attribute at.



5
6
7
# File 'lib/job_types/default.rb', line 5

def at
  @at
end

#cron_logObject

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_redirectObject

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

#taskObject

Returns the value of attribute task.



5
6
7
# File 'lib/job_types/default.rb', line 5

def task
  @task
end

Instance Method Details

#outputObject



16
17
18
# File 'lib/job_types/default.rb', line 16

def output
  task
end