lib/sshkit/formatters/dot.rb in sshkit-1.7.1 vs lib/sshkit/formatters/dot.rb in sshkit-1.8.0
- old
+ new
@@ -2,21 +2,14 @@
module Formatter
class Dot < Abstract
- def write(obj)
- return unless obj.is_a? SSHKit::Command
- if obj.finished?
- original_output << (obj.failure? ? c.red('.') : c.green('.'))
- end
+ def log_command_exit(command)
+ original_output << colorize('.', command.failure? ? :red : :green)
end
- alias :<< :write
- private
-
- def c
- @c ||= Color
+ def write(_obj)
end
end
end