Module: Autowow::Executor
Defined Under Namespace
Classes: BufferingPretty, Pretty, PrettyWithOutput, RunWrapper
Instance Method Summary
collapse
Instance Method Details
#pretty ⇒ Object
82
83
84
|
# File 'lib/autowow/executor.rb', line 82
def pretty
@pretty ||= RunWrapper.new(TTY::Command.new(tty_params.merge(printer: Pretty)))
end
|
#pretty_with_output ⇒ Object
86
87
88
|
# File 'lib/autowow/executor.rb', line 86
def pretty_with_output
@pretty_with_output ||= RunWrapper.new(TTY::Command.new(tty_params.merge(printer: BufferingPretty)), fail_silently: true)
end
|
#quiet ⇒ Object
90
91
92
|
# File 'lib/autowow/executor.rb', line 90
def quiet
@quiet ||= RunWrapper.new(TTY::Command.new(tty_params.merge(printer: :null)))
end
|
#tty_params ⇒ Object
94
95
96
|
# File 'lib/autowow/executor.rb', line 94
def tty_params
{ pty: true, verbose: false }
end
|