Sha256: 73af05da7604756153da77b3dc52e5e08e77f12969665762304c495df5d6429f

Contents?: true

Size: 516 Bytes

Versions: 35

Compression:

Stored size: 516 Bytes

Contents

require_relative 'formatter/node'
require_relative 'formatter/list'
require_relative 'formatter/keyed_list'
require_relative 'formatter/grouped_keyed_list'
require_relative 'formatter/object'
require_relative 'formatter/keyed_object'
require_relative 'formatter/root'
require_relative 'formatter/value'

module Aptible
  module CLI
    module Formatter
      def self.render(renderer)
        root = Root.new
        yield root
        out = renderer.render(root)
        puts out if out
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
aptible-cli-0.17.1 lib/aptible/cli/formatter.rb
aptible-cli-0.17.0 lib/aptible/cli/formatter.rb
aptible-cli-0.16.9 lib/aptible/cli/formatter.rb
aptible-cli-0.16.8 lib/aptible/cli/formatter.rb
aptible-cli-0.16.7 lib/aptible/cli/formatter.rb
aptible-cli-0.16.6 lib/aptible/cli/formatter.rb
aptible-cli-0.16.5 lib/aptible/cli/formatter.rb
aptible-cli-0.16.4 lib/aptible/cli/formatter.rb
aptible-cli-0.16.3 lib/aptible/cli/formatter.rb
aptible-cli-0.16.2 lib/aptible/cli/formatter.rb
aptible-cli-0.16.1 lib/aptible/cli/formatter.rb
aptible-cli-0.16.0 lib/aptible/cli/formatter.rb
aptible-cli-0.15.2 lib/aptible/cli/formatter.rb
aptible-cli-0.15.1 lib/aptible/cli/formatter.rb
aptible-cli-0.15.0 lib/aptible/cli/formatter.rb