Module: Canoe::SystemCommand
- Included in:
- Compiler, DepAnalyzer, WorkSpace
- Defined in:
- lib/util.rb
Overview
issueing system commands by accepting a command string
Instance Method Summary collapse
Instance Method Details
#issue_command(cmd_str) ⇒ Object
66 67 68 69 |
# File 'lib/util.rb', line 66 def issue_command(cmd_str) puts cmd_str system(cmd_str) end |
#run_command(cmd_str) ⇒ Object
71 72 73 74 75 76 |
# File 'lib/util.rb', line 71 def run_command(cmd_str) puts cmd_str status = system(cmd_str) puts $CHILD_STATUS unless status status end |