class RooOnRails::Shell

Constants

CommandFailed

Public Instance Methods

run(cmd) click to toggle source
# File lib/roo_on_rails/shell.rb, line 8
def run(cmd)
  result = Bundler.with_clean_env { %x{#{cmd}} }
  return [$?.success?, result]
end
run!(cmd) click to toggle source
# File lib/roo_on_rails/shell.rb, line 13
def run!(cmd)
  raise CommandFailed.new(cmd) unless run(cmd).first
end
run?(cmd) click to toggle source
# File lib/roo_on_rails/shell.rb, line 17
def run?(cmd)
  run(cmd).first
end