module Tenma::Runnable

Public Instance Methods

run(command) click to toggle source
# File lib/tenma/runnable.rb, line 3
def run(command)
  output = `#{command}`
  if !$?.success?
    raise CommandException, "Failed! #{command}"
  end

  return output
end