lib/tty/command/printers/quiet.rb in tty-command-0.9.0 vs lib/tty/command/printers/quiet.rb in tty-command-0.10.0

- old
+ new

@@ -1,24 +1,20 @@ -# encoding: utf-8 +require_relative "abstract" -require_relative 'abstract' - module TTY class Command module Printers class Quiet < Abstract - attr_reader :output, :options - def print_command_start(cmd) # quiet end def print_command_out_data(cmd, *args) - write(cmd, args.join(' '), out_data) + write(cmd, args.join(" "), out_data) end def print_command_err_data(cmd, *args) - write(cmd, args.join(' '), err_data) + write(cmd, args.join(" "), err_data) end def print_command_exit(cmd, status, *args) unless !cmd.only_output_on_error || status.zero? output << out_data