Class: CogCmd::Swat::Dryrun
- Inherits:
-
Cog::Command
- Object
- Cog::Command
- CogCmd::Swat::Dryrun
- Defined in:
- lib/cog_cmd/swat/dryrun.rb
Overview
Cog Command that loads and dryruns the given script
Instance Method Summary collapse
Instance Method Details
#run_command ⇒ Object
11 12 13 14 15 |
# 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 |