class Rvm2::Shell::Runner::Fake

Attributes

last_status[R]

Public Instance Methods

execute(command) { |out, err| ... } click to toggle source
# File lib/rvm2/shell/runner/fake.rb, line 4
def execute(command)
  @last_status, outputs = @respond.call(command)
  outputs.each do |out, err|
    yield(out, err)
  end
  @last_status
end
respond(&block) click to toggle source
# File lib/rvm2/shell/runner/fake.rb, line 12
def respond(&block)
  @respond = block
end