class PlainFormatter

Improvement on the broken piece of crap text formatter in SSHKit.

Public Class Methods

new(io = $stdout) click to toggle source
# File lib/docker_deploy.rb, line 26
def initialize(io = $stdout)
  @io = io
end

Public Instance Methods

<<(obj)
Alias for: write
write(obj) click to toggle source
# File lib/docker_deploy.rb, line 30
def write(obj)
  if obj.is_a?(SSHKit::Command)
    @io.write(obj.full_stdout)
  else
    @io.write(obj.to_s)
  end
end
Also aliased as: <<