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.0.1 | lib/airbrussh/formatter.rb |
airbrussh-1.0.0 | lib/airbrussh/formatter.rb |
airbrussh-1.0.0.beta1 | lib/airbrussh/formatter.rb |