Class: Cocaine::CommandLine
- Inherits:
-
Object
- Object
- Cocaine::CommandLine
- Defined in:
- lib/steto/cocaine_ext.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
Instance Method Summary collapse
- #run_with_exit_status ⇒ Object (also: #run)
Instance Attribute Details
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status.
6 7 8 |
# File 'lib/steto/cocaine_ext.rb', line 6 def exit_status @exit_status end |
Instance Method Details
#run_with_exit_status ⇒ Object Also known as: run
9 10 11 12 13 14 15 |
# File 'lib/steto/cocaine_ext.rb', line 9 def run_with_exit_status begin run_without_exit_status ensure @exit_status = $?.exitstatus if $? end end |