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.24.2 lib/aptible/cli/formatter.rb
aptible-cli-0.24.1 lib/aptible/cli/formatter.rb
aptible-cli-0.24.0 lib/aptible/cli/formatter.rb
aptible-cli-0.23.0 lib/aptible/cli/formatter.rb
aptible-cli-0.22.0 lib/aptible/cli/formatter.rb
aptible-cli-0.21.0 lib/aptible/cli/formatter.rb
aptible-cli-0.20.0 lib/aptible/cli/formatter.rb
aptible-cli-0.19.9 lib/aptible/cli/formatter.rb
aptible-cli-0.19.7 lib/aptible/cli/formatter.rb
aptible-cli-0.19.6 lib/aptible/cli/formatter.rb
aptible-cli-0.19.4 lib/aptible/cli/formatter.rb
aptible-cli-0.19.3 lib/aptible/cli/formatter.rb
aptible-cli-0.19.2 lib/aptible/cli/formatter.rb
aptible-cli-0.19.1 lib/aptible/cli/formatter.rb
aptible-cli-0.19.0 lib/aptible/cli/formatter.rb
aptible-cli-0.18.3 lib/aptible/cli/formatter.rb
aptible-cli-0.18.2 lib/aptible/cli/formatter.rb
aptible-cli-0.18.1 lib/aptible/cli/formatter.rb
aptible-cli-0.18.0 lib/aptible/cli/formatter.rb
aptible-cli-0.17.2 lib/aptible/cli/formatter.rb