Class: Subshell

Inherits:
Object
  • Object
show all
Defined in:
lib/subshell.rb

Instance Method Summary collapse

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