Class: Evm::System
- Inherits:
-
Object
- Object
- Evm::System
- Defined in:
- lib/evm/system.rb
Instance Method Summary collapse
-
#initialize(executable) ⇒ System
constructor
A new instance of System.
- #run(*args) ⇒ Object
Constructor Details
#initialize(executable) ⇒ System
Returns a new instance of System.
3 4 5 |
# File 'lib/evm/system.rb', line 3 def initialize(executable) @executable = executable end |
Instance Method Details
#run(*args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/evm/system.rb', line 7 def run(*args) succeeded = Kernel.system(@executable, *args) unless succeeded print "Failed! See logs above for error." Kernel.exit($?.exitstatus) end end |