Class: Evm::System

Inherits:
Object
  • Object
show all
Defined in:
lib/evm/system.rb

Instance Method Summary collapse

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