Sha256: ff48cf7f43e563f512e9b15007cce374f3e691d5e060a41dcfa2f346d1564fd2

Contents?: true

Size: 288 Bytes

Versions: 18

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

require_relative '../../protocol'

# shell(bash) protocol
class Shell
  # @implements LanguageImpl
  def build(code, _)
    ['set -e', code].join "\n"
  end

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

creator :shell, Shell

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
raka-0.3.18 lib/raka/lang/shell/impl.rb
raka-0.3.17 lib/raka/lang/shell/impl.rb
raka-0.3.16 lib/raka/lang/shell/impl.rb
raka-0.3.15 lib/raka/lang/shell/impl.rb
raka-0.3.14 lib/raka/lang/shell/impl.rb
raka-0.3.13 lib/raka/lang/shell/impl.rb
raka-0.3.12 lib/raka/lang/shell/impl.rb
raka-0.3.11 lib/raka/lang/shell/impl.rb
raka-0.3.10 lib/raka/lang/shell/impl.rb
raka-0.3.9 lib/raka/lang/shell/impl.rb
raka-0.3.8 lib/raka/lang/shell/impl.rb
raka-0.3.7 lib/raka/lang/shell/impl.rb
raka-0.3.6 lib/raka/lang/shell/impl.rb
raka-0.3.4 lib/raka/lang/shell/impl.rb
raka-0.3.3 lib/lang/shell/impl.rb
raka-0.3.2 lib/lang/shell/impl.rb
raka-0.3.1 lib/lang/shell/impl.rb
raka-0.2.3 lib/lang/shell/impl.rb