Sha256: b2588c110aead42cc25f7e1bc5290b5e80d764cee51918502a9a3ab326a3d82c

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

require "airbrussh"
require "airbrussh/delegating_formatter"

# This is the formatter class that conforms to the SSHKit Formatter API and
# provides the airbrussh functionality to SSHKit. Note however that this class
# doesn't do much by itself; instead, it delegates to the ConsoleFormatter
# and (optionally) the LogFileFormatter, which handle the bulk of the logic.
#
module Airbrussh
  class Formatter < Airbrussh::DelegatingFormatter
    def initialize(io, config=::Airbrussh.configuration)
      # Delegate to ConsoleFormatter and (optionally) LogFileFormatter,
      # based on the configuration.
      super(config.formatters(io))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
airbrussh-0.8.0 lib/airbrussh/formatter.rb
airbrussh-0.7.0 lib/airbrussh/formatter.rb
airbrussh-0.6.0 lib/airbrussh/formatter.rb