class CogCmd::Swat::Dryrun

Cog Command that loads and dryruns the given script

Public Instance Methods

run_command() click to toggle source
# File lib/cog_cmd/swat/dryrun.rb, line 11
def run_command
  rails = ::Swat::RailsLoader.new
  response.template = "execution_result"
  response.content = rails.run("dryrun #{request.args.join(' ')}")
end