Class: Balmora::Command::Exec
- Inherits:
-
Balmora::Command
- Object
- Balmora::Command
- Balmora::Command::Exec
- Defined in:
- lib/balmora/command/exec.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
Methods inherited from Balmora::Command
#_execute, #execute, #init, #initialize, #option
Constructor Details
This class inherits a constructor from Balmora::Command
Instance Method Details
#options ⇒ Object
5 6 7 |
# File 'lib/balmora/command/exec.rb', line 5 def () return super().concat([:exec]) end |
#run ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/balmora/command/exec.rb', line 15 def run() exec = option(:exec) if !exec.instance_of?(::Array) exec = [@shell.expression(exec)] end @shell.system(exec, change: true) end |