Class: EasyAppHelper::Processes::Base
- Inherits:
-
Object
- Object
- EasyAppHelper::Processes::Base
- Includes:
- Command, TimeManagement
- Defined in:
- lib/easy_app_helper/processes/base.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#last_pid ⇒ Object
readonly
Returns the value of attribute last_pid.
-
#log_output ⇒ Object
Returns the value of attribute log_output.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#process_state ⇒ Object
readonly
Returns the value of attribute process_state.
-
#show_output ⇒ Object
Returns the value of attribute show_output.
Attributes included from TimeManagement
#creation_time, #end_time, #start_time
Attributes included from Command
Instance Method Summary collapse
-
#initialize(command = nil, mode = :synchronous) ⇒ Base
constructor
A new instance of Base.
Methods included from TimeManagement
Methods included from Command
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_status ⇒ Object
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_pid ⇒ Object
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_output ⇒ Object
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 |
#mode ⇒ Object
Returns the value of attribute mode.
11 12 13 |
# File 'lib/easy_app_helper/processes/base.rb', line 11 def mode @mode end |
#process_state ⇒ Object
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_output ⇒ Object
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 |