Method: Lazylead::OS#run
- Defined in:
- lib/lazylead/os.rb
#run(*cmd) ⇒ Object
TODO:
#/DEV Add support of multiline string literals, not just array of commands
Run OS-oriented command
49 50 51 52 53 54 |
# File 'lib/lazylead/os.rb', line 49 def run(*cmd) return "" if cmd.empty? || cmd.any?(&:nil?) todo = cmd todo = [cmd.first] if cmd.size == 1 `#{todo.join(" ")}`.scrub! end |