Class: Commander
- Inherits:
-
Object
- Object
- Commander
- Defined in:
- lib/auto_tagger/commander.rb
Class Method Summary collapse
Class Method Details
.command_in_context(path, cmd) ⇒ Object
11 12 13 |
# File 'lib/auto_tagger/commander.rb', line 11 def command_in_context(path, cmd) "cd #{path} && #{cmd}" end |
.execute(path, cmd) ⇒ Object
3 4 5 |
# File 'lib/auto_tagger/commander.rb', line 3 def execute(path, cmd) `#{command_in_context(path, cmd)}` end |
.execute!(path, cmd) ⇒ Object
7 8 9 |
# File 'lib/auto_tagger/commander.rb', line 7 def execute!(path, cmd) system command_in_context(path, cmd) end |