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



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_outputObject



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

#quietObject



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_paramsObject



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

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