Class: ExecCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/woodstove/packagecommands.rb

Instance Method Summary collapse

Instance Method Details

#infoObject



96
# File 'lib/woodstove/packagecommands.rb', line 96

def info; 'Runs specified script for current package.'; end

#longObject



93
# File 'lib/woodstove/packagecommands.rb', line 93

def long; 'exec'; end

#optsObject



95
# File 'lib/woodstove/packagecommands.rb', line 95

def opts; '[script] [args]'; end

#run(args) ⇒ Object



98
99
100
101
# File 'lib/woodstove/packagecommands.rb', line 98

def run args
  need_args args, 'You must specify a script to execute.'
  current_package.run_script args[0], args[1..-1].join(' ')
end

#shortObject



94
# File 'lib/woodstove/packagecommands.rb', line 94

def short; 'x'; end