Class: Foreman::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman/process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, command) ⇒ Process

Returns a new instance of Process.



9
10
11
12
# File 'lib/foreman/process.rb', line 9

def initialize(name, command)
  @name    = name
  @command = command
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



7
8
9
# File 'lib/foreman/process.rb', line 7

def color
  @color
end

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/foreman/process.rb', line 6

def command
  @command
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/foreman/process.rb', line 5

def name
  @name
end