Sha256: 7bf0db8832c608a6d8d44c39463de1604d6c5857e6671b72756ea43af8c6f751
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
class AwsInventory::Presenter autoload :Base, "aws_inventory/presenters/base" autoload :Tab, "aws_inventory/presenters/tab" autoload :Table, "aws_inventory/presenters/table" autoload :Json, "aws_inventory/presenters/json" def initialize(options, data) @options = options @data = data end def display presenter_class = "AwsInventory::Presenter::#{format.classify}".constantize presenter = presenter_class.new(@options, @data) presenter.display end # Formats: tabs, markdown def format ENV['AWS_INVENTORY_FORMAT'] || "table" end end
Version data entries
4 entries across 4 versions & 1 rubygems