Sha256: 1aeb1ca310b05e49859e9870a513327fdc81b4ebfaabff96354476ca87e307fa
Contents?: true
Size: 867 Bytes
Versions: 3
Compression:
Stored size: 867 Bytes
Contents
module Rebuild::CLI class RbldRunCommand < Command def initialize @usage = [ { :syntax => "run [OPTIONS] [ENVIRONMENT[:TAG]]", :description => "Interactive mode: opens shell in the " \ "specified enviroment" }, { :syntax => "run [OPTIONS] [ENVIRONMENT[:TAG]] -- COMMANDS", :description => "Scripting mode: runs COMMANDS in the " \ "specified environment" } ] @description = "Run command in a local environment" end def run(parameters) env = Environment.new( parameters.shift ) cmd = get_cmdline_tail( parameters ) rbld_log.info("Going to run \"#{cmd}\" in \"#{env}\"") warn_if_modified( env, 'running' ) @errno = engine_api.run( env, cmd ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbld-1.0.2 | cli/lib/commands/rbld_run.rb |
rbld-1.0.1 | cli/lib/commands/rbld_run.rb |
rbld-1.0.0 | cli/lib/commands/rbld_run.rb |