Class: Ellipses::Support::Shell::Result
- Inherits:
-
Struct
- Object
- Struct
- Ellipses::Support::Shell::Result
- Defined in:
- lib/ellipses/support/shell.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#err ⇒ Object
Returns the value of attribute err.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#out ⇒ Object
Returns the value of attribute out.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
8 9 10 |
# File 'lib/ellipses/support/shell.rb', line 8 def args @args end |
#err ⇒ Object
Returns the value of attribute err
8 9 10 |
# File 'lib/ellipses/support/shell.rb', line 8 def err @err end |
#exit_code ⇒ Object
Returns the value of attribute exit_code
8 9 10 |
# File 'lib/ellipses/support/shell.rb', line 8 def exit_code @exit_code end |
#out ⇒ Object
Returns the value of attribute out
8 9 10 |
# File 'lib/ellipses/support/shell.rb', line 8 def out @out end |
Instance Method Details
#cmd ⇒ Object
21 22 23 |
# File 'lib/ellipses/support/shell.rb', line 21 def cmd args.join ' ' end |
#notok? ⇒ Boolean
17 18 19 |
# File 'lib/ellipses/support/shell.rb', line 17 def notok? !ok? end |
#ok? ⇒ Boolean
13 14 15 |
# File 'lib/ellipses/support/shell.rb', line 13 def ok? exit_code&.zero? end |
#outline ⇒ Object
9 10 11 |
# File 'lib/ellipses/support/shell.rb', line 9 def outline out.first end |