Class: Maestro::Util::Shell::ExitCode

Inherits:
Object
  • Object
show all
Defined in:
lib/util/shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ ExitCode

Returns a new instance of ExitCode.



19
20
21
# File 'lib/util/shell.rb', line 19

def initialize(status)
  @exit_code = status
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



17
18
19
# File 'lib/util/shell.rb', line 17

def exit_code
  @exit_code
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/util/shell.rb', line 23

def success?
  @exit_code == 0
end