Sha256: 508b996999ae6b3d8c73eab2149bca0ff339a7fa69a07d2162a11cd943965f0e

Contents?: true

Size: 719 Bytes

Versions: 23

Compression:

Stored size: 719 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, options_or_config_object={})
      config = ::Airbrussh.configuration(options_or_config_object)
      # Delegate to ConsoleFormatter and (optionally) LogFileFormatter,
      # based on the configuration.
      super(config.formatters(io))
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
airbrussh-1.5.3 lib/airbrussh/formatter.rb
airbrussh-1.5.2 lib/airbrussh/formatter.rb
airbrussh-1.5.1 lib/airbrussh/formatter.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/airbrussh-1.5.0/lib/airbrussh/formatter.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/airbrussh-1.5.0/lib/airbrussh/formatter.rb
airbrussh-1.5.0 lib/airbrussh/formatter.rb
airbrussh-1.4.2 lib/airbrussh/formatter.rb
airbrussh-1.4.1 lib/airbrussh/formatter.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/airbrussh-1.3.1/lib/airbrussh/formatter.rb
airbrussh-1.4.0 lib/airbrussh/formatter.rb
airbrussh-1.3.4 lib/airbrussh/formatter.rb
airbrussh-1.3.3 lib/airbrussh/formatter.rb
airbrussh-1.3.2 lib/airbrussh/formatter.rb
airbrussh-1.3.1 lib/airbrussh/formatter.rb
airbrussh-1.3.0 lib/airbrussh/formatter.rb
airbrussh-1.2.0 lib/airbrussh/formatter.rb
airbrussh-1.1.2 lib/airbrussh/formatter.rb
airbrussh-1.1.1 lib/airbrussh/formatter.rb
airbrussh-1.1.0 lib/airbrussh/formatter.rb
airbrussh-1.0.2 lib/airbrussh/formatter.rb