Class: FireAndForget::TaskDescription

Inherits:
Object
  • Object
show all
Defined in:
lib/fire_and_forget/task_description.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path_to_binary, niceness = 0, default_parameters = {}, env = {}) ⇒ TaskDescription

Returns a new instance of TaskDescription.



7
8
9
# File 'lib/fire_and_forget/task_description.rb', line 7

def initialize(name, path_to_binary, niceness=0, default_parameters={}, env={})
  @name, @binary, @params, @niceness, @env = name, path_to_binary, default_parameters, niceness, env
end

Instance Attribute Details

#binaryObject (readonly)

Returns the value of attribute binary.



5
6
7
# File 'lib/fire_and_forget/task_description.rb', line 5

def binary
  @binary
end

#envObject (readonly)

Returns the value of attribute env.



5
6
7
# File 'lib/fire_and_forget/task_description.rb', line 5

def env
  @env
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/fire_and_forget/task_description.rb', line 5

def name
  @name
end

#nicenessObject (readonly)

Returns the value of attribute niceness.



5
6
7
# File 'lib/fire_and_forget/task_description.rb', line 5

def niceness
  @niceness
end

#paramsObject (readonly)

Returns the value of attribute params.



5
6
7
# File 'lib/fire_and_forget/task_description.rb', line 5

def params
  @params
end