class Rvm2::Shell::Runner::Local

Attributes

last_status[R]
shell[R]

Public Class Methods

new(shell = "sh") click to toggle source
# File lib/rvm2/shell/runner/local.rb, line 6
def initialize(shell = "sh")
  @shell = shell
end

Public Instance Methods

execute(command) { |out, err| ... } click to toggle source
# File lib/rvm2/shell/runner/local.rb, line 10
def execute(command)
  @last_status = nil
  shell_session.execute(command) do |out, err|
    yield(out, err)
  end
  @last_status = shell_session.status
end
shell_session() click to toggle source
# File lib/rvm2/shell/runner/local.rb, line 18
def shell_session
  @shell_session ||= Session::Sh.new(:prog => shell)
end