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