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
# File 'lib/evm/system.rb', line 7

def run(*args)
  command = build_command(args)
  unless Kernel.system(command)
    raise Evm::Exception.new("An error occurred running command: #{command}")
  end
end