Module: Rooibos::Shortcuts::Cmd

Defined in:
lib/rooibos/shortcuts.rb

Overview

Short alias for Command.

Class Method Summary collapse

Class Method Details

.exitObject

Creates an exit command. Alias for Command.exit.



33
34
35
# File 'lib/rooibos/shortcuts.rb', line 33

def self.exit
  Command.exit
end

.map(inner_command, &mapper) ⇒ Object

Creates a mapped command. Short alias for Command.map.



45
46
47
# File 'lib/rooibos/shortcuts.rb', line 45

def self.map(inner_command, &mapper)
  Command.map(inner_command, &mapper)
end

.sh(command, envelope) ⇒ Object

Creates a shell execution command. Short alias for Command.system.



39
40
41
# File 'lib/rooibos/shortcuts.rb', line 39

def self.sh(command, envelope)
  Command.system(command, envelope)
end