Class: Subshell
- Inherits:
-
Object
- Object
- Subshell
- Defined in:
- lib/subshell.rb
Instance Method Summary collapse
-
#initialize(workspace) ⇒ Subshell
constructor
A new instance of Subshell.
- #run(command) ⇒ Object
Constructor Details
#initialize(workspace) ⇒ Subshell
4 5 6 |
# File 'lib/subshell.rb', line 4 def initialize(workspace) @workspace = workspace end |
Instance Method Details
#run(command) ⇒ Object
8 9 10 |
# File 'lib/subshell.rb', line 8 def run(command) bash_command("cd #{@workspace} && #{command}") end |