Class: Rukawa::Builtins::Base

Inherits:
Job show all
Defined in:
lib/rukawa/builtins/base.rb

Direct Known Subclasses

Shell, Waiter

Instance Attribute Summary

Attributes inherited from Job

#finished_at, #in_comings, #out_goings, #started_at, #state, #variables

Attributes inherited from AbstractJob

#parent_job_net

Class Method Summary collapse

Methods inherited from Job

after_fail, after_run, around_run, before_run, #dataflow, #initialize, #jobs_as_from, #leaf?, #resource_count, #root?, #run, set_dependency_type, set_resource_count, set_retryable, #set_state, #to_dot_def, wrapper_for, wrappers

Methods inherited from AbstractJob

add_skip_rule, description, #elapsed_time_from, #formatted_elapsed_time_from, #inspect, #name, set_description, #skip?

Constructor Details

This class inherits a constructor from Rukawa::Job

Class Method Details

.[](**params) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/rukawa/builtins/base.rb', line 7

def [](**params)
  Class.new(self) do
    handle_parameters(params)

    def self.name
      super || "#{superclass.name}_#{object_id}"
    end
  end
end

.handle_parameters(**params) ⇒ Object



17
18
# File 'lib/rukawa/builtins/base.rb', line 17

def handle_parameters(**params)
end