Sha256: cad2c98898e1ef09021342e165028329ef2d1da6bc94368cbace5f943d96b02f
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
class Tane::Commands::Exec < Tane::Commands::Base class << self def process(args) authenticate_user bushido_envs.each_pair do |key, value| ENV[key] = value end command = args.join(' ') if command.empty? term.say("please enter a command for tane exec to run. example:") term.say("\t tane exec rails s") exit 1 end exec command end def help_text <<-EOL Usage: tane exec any_command Executes any command specified in a simulated Bushido environment. The following example shows you how to run rails applications. tane exec rails s This is how you should be running Bushido rails applications locally. All the configuration required for `tane exec` is obtained from `.bushido` directory in the current directory. This can only be used if `tane init` has been run in the current directory. EOL end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tane-0.0.2 | lib/tane/commands/exec.rb |
tane-0.0.1 | lib/tane/commands/exec.rb |