Class: ShellTastic::Command
- Inherits:
-
Object
- Object
- ShellTastic::Command
- Defined in:
- lib/shelltastic.rb
Class Method Summary collapse
-
.run(*command) ⇒ Array
run is the entry point to api.
Class Method Details
.run(*command) ⇒ Array
run is the entry point to api
20 21 22 |
# File 'lib/shelltastic.rb', line 20 def run(*command) command.flatten.map { |cmd| ShellTastic::IO.popen(cmd, ShellTastic::Timer.new, ShellTastic::OutputFormatter.new) } end |