Module: Autowow::Executor

Includes:
ReflectionUtils::CreateModuleFunctions
Included in:
Features::Gem, Features::Os, Features::Rbenv, Features::Vcs
Defined in:
lib/autowow/executor.rb

Defined Under Namespace

Classes: BufferingPretty, Pretty, PrettyWithOutput, RunWrapper

Instance Method Summary collapse

Instance Method Details

#prettyObject



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_outputObject



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

#quietObject



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_paramsObject



93
94
95
# File 'lib/autowow/executor.rb', line 93

def tty_params
  { pty: true, verbose: false }
end