Class: ShellTastic::Command
- Inherits:
-
Object
- Object
- ShellTastic::Command
- Defined in:
- lib/shelltastic.rb
Overview
Command is the namespace for the actual meat of the gem
Class Method Summary collapse
-
.run(*command) ⇒ Array
encapsualtes the popen call ShellTastic::Command.run “whoami” ShellTastic::Command.run “whoami”, “date”.
Class Method Details
.run(*command) ⇒ Array
encapsualtes the popen call ShellTastic::Command.run “whoami” ShellTastic::Command.run “whoami”, “date”
19 20 21 |
# File 'lib/shelltastic.rb', line 19 def run(*command) command.flatten.map { |cmd| ShellTastic::IO.popen(cmd, ShellTastic::Timer) } end |