Module: Scmd

Defined in:
lib/scmd/command.rb,
lib/scmd.rb,
lib/scmd/version.rb

Overview

Scmd::Command is a base wrapper for handling system commands. Initialize it with with a string specifying the command to execute. You can then run the command and inspect its results. It can be used as is, or inherited from to create a more custom command wrapper.

Defined Under Namespace

Classes: Command, RunError

Constant Summary collapse

TimeoutError =
Class.new(::RuntimeError)
VERSION =
"2.2.0"

Class Method Summary collapse

Class Method Details

.new(*args, &block) ⇒ Object



6
7
8
# File 'lib/scmd.rb', line 6

def self.new(*args, &block)
  Command.new(*args, &block)
end