Class: EasyAppHelper::Processes::Base

Inherits:
Object
  • Object
show all
Includes:
Command, TimeManagement
Defined in:
lib/easy_app_helper/processes/base.rb

Instance Attribute Summary collapse

Attributes included from TimeManagement

#creation_time, #end_time, #start_time

Attributes included from Command

#command

Instance Method Summary collapse

Methods included from TimeManagement

#duration

Methods included from Command

#valid?

Constructor Details

#initialize(command = nil, mode = :synchronous) ⇒ Base

Returns a new instance of Base.



14
15
16
17
18
19
# File 'lib/easy_app_helper/processes/base.rb', line 14

def initialize(command = nil, mode = :synchronous)
  self.command = command
  self.process_state = :not_started
  self.mode = mode
  self.creation_time = Time.now
end

Instance Attribute Details

#exit_statusObject

Returns the value of attribute exit_status.



11
12
13
# File 'lib/easy_app_helper/processes/base.rb', line 11

def exit_status
  @exit_status
end

#last_pidObject

Returns the value of attribute last_pid.



11
12
13
# File 'lib/easy_app_helper/processes/base.rb', line 11

def last_pid
  @last_pid
end

#log_outputObject

Returns the value of attribute log_output.



12
13
14
# File 'lib/easy_app_helper/processes/base.rb', line 12

def log_output
  @log_output
end

#modeObject

Returns the value of attribute mode.



11
12
13
# File 'lib/easy_app_helper/processes/base.rb', line 11

def mode
  @mode
end

#process_stateObject

Returns the value of attribute process_state.



11
12
13
# File 'lib/easy_app_helper/processes/base.rb', line 11

def process_state
  @process_state
end

#show_outputObject

Returns the value of attribute show_output.



12
13
14
# File 'lib/easy_app_helper/processes/base.rb', line 12

def show_output
  @show_output
end