Module: Orats::Shell

Included in:
Common
Defined in:
lib/orats/shell.rb

Overview

execute various shell commands

Instance Method Summary collapse

Instance Method Details

#commit(message) ⇒ Object



8
9
10
# File 'lib/orats/shell.rb', line 8

def commit(message)
  run_from @target_path, "git add -A && git commit -m '#{message}'"
end

#run_from(path, command) ⇒ Object



4
5
6
# File 'lib/orats/shell.rb', line 4

def run_from(path, command)
  run "cd #{path} && #{command} && cd -"
end