Class: Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/raka/lang/shell/impl.rb

Overview

shell(bash) protocol

Instance Method Summary collapse

Instance Method Details

#build(code, _) ⇒ Object



8
9
10
# File 'lib/raka/lang/shell/impl.rb', line 8

def build(code, _)
  ['set -e', code].join "\n"
end

#run_script(env, fname, _) ⇒ Object



12
13
14
# File 'lib/raka/lang/shell/impl.rb', line 12

def run_script(env, fname, _)
  run_cmd(env, "bash #{fname}")
end