Class: Ripe::DB::Task
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ripe::DB::Task
- Defined in:
- lib/ripe/db/task.rb
Overview
This class represents a Task
object in ripe’s internal database. Its fields are defined by Ripe::DB::TaskMigration
.
Instance Method Summary collapse
-
#dir ⇒ Object
Return path to task directory, which is the same as worker directory.
-
#log ⇒ Object
Return path to task-level combined
stdout
andstderr
log. -
#sh ⇒ Object
Return path to task-level job script, which only includes the task at hand.
Instance Method Details
#dir ⇒ Object
Return path to task directory, which is the same as worker directory.
17 18 19 |
# File 'lib/ripe/db/task.rb', line 17 def dir "#{self.worker.dir}" end |
#log ⇒ Object
Return path to task-level combined stdout
and stderr
log.
24 25 26 |
# File 'lib/ripe/db/task.rb', line 24 def log "#{self.dir}/#{self.id}.log" end |
#sh ⇒ Object
Return path to task-level job script, which only includes the task at hand. This script is never actually executed by ripe.
34 35 36 |
# File 'lib/ripe/db/task.rb', line 34 def sh "#{self.dir}/#{self.id}.sh" end |