Classes: Failure, Runner
[:none, :stdout, :stderr, :both].freeze
"0.3.1"
run.
run
Parameters:
Command to run on shell
Options Hash (options):
Seconds, default is nil.
If true given, command is not run actually
Which output is used as return, one of :none, :stdout, :stderr, :both
Which output is written to logger, one of :none, :stdout, :stderr, :both
17 18 19
# File 'lib/logger_pipe.rb', line 17 def run(logger, cmd, options = {}) Runner.new(logger, cmd, options).execute end