class SimpleCommand

Attributes

output[R]

Public Class Methods

new(cmd) click to toggle source
# File features/support/env.rb, line 79
def initialize cmd
  @cmd = cmd
end
run(cmd) click to toggle source
# File features/support/env.rb, line 87
def self.run cmd
  command = new(cmd)
  command.run
  command
end

Public Instance Methods

run() click to toggle source
# File features/support/env.rb, line 93
def run
  @output = %x#{@cmd} 2>&1`.chomp
  @status = $?
  $?.success?
end
to_s() click to toggle source
# File features/support/env.rb, line 83
def to_s
  @cmd
end