Module: SystemCall

Defined in:
lib/system_call.rb,
lib/system_call/result.rb,
lib/system_call/command.rb,
lib/system_call/version.rb

Overview

A simple wrapper around Ruby’s Open3 to call CLI programs and process their output.

Defined Under Namespace

Classes: Command, Result

Constant Summary collapse

VERSION =
'1.0.3'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(*args) ⇒ Result

Initializes and calls a Command, then returns the Result.

Parameters:

  • args (Array)

    The command line arguments.

Returns:



17
18
19
# File 'lib/system_call.rb', line 17

def self.call(*args)
  Command.call(*args)
end

Instance Method Details

#system_call(*args) ⇒ Result

Initializes and calls a Command, then returns the Result.

Parameters:

  • args (Array)

    The command line arguments.

Returns:



26
27
28
# File 'lib/system_call.rb', line 26

def system_call(*args)
  Command.call(*args)
end