Class: Libis::Workflow::Run
- Includes:
- Base::Run
- Defined in:
- lib/libis/workflow/run.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#job ⇒ Object
Returns the value of attribute job.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Attributes included from Base::Run
Attributes inherited from WorkItem
#items, #options, #parent, #properties, #status_log, #summary
Instance Method Summary collapse
-
#initialize ⇒ Run
constructor
A new instance of Run.
- #logger ⇒ Object
Methods included from Base::Run
#name, #namepath, #names, #run, #work_dir, #workflow
Methods included from Base::WorkItem
#add_item, #each, #get_item_list, #get_items, #get_parent, #get_root, #get_run, #label, #label=, #labelpath, #labels, #name, #name=, #namepath, #names, #save, #save!, #size, #to_filename, #to_s
Methods included from Base::Logging
Methods included from Status
#check_status, #compare_status, #set_status, #status, #status_label, #status_progress, #status_text
Constructor Details
#initialize ⇒ Run
Returns a new instance of Run.
17 18 19 20 21 22 |
# File 'lib/libis/workflow/run.rb', line 17 def initialize @start_date = Time.now @job = nil @id = SecureRandom.hex(10) super end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/libis/workflow/run.rb', line 15 def id @id end |
#job ⇒ Object
Returns the value of attribute job.
15 16 17 |
# File 'lib/libis/workflow/run.rb', line 15 def job @job end |
#start_date ⇒ Object
Returns the value of attribute start_date.
15 16 17 |
# File 'lib/libis/workflow/run.rb', line 15 def start_date @start_date end |
Instance Method Details
#logger ⇒ Object
28 29 30 |
# File 'lib/libis/workflow/run.rb', line 28 def logger self.properties[:logger] || (job.logger rescue nil) end |