Sha256: cb4099daac2344ebe03893e8f298442720914e92ec311e230d4c9e59994d5910

Contents?: true

Size: 394 Bytes

Versions: 8

Compression:

Stored size: 394 Bytes

Contents

module Humidifier
  # Represents a CFN stack output
  class Output
    attr_accessor :description, :value

    def initialize(opts = {})
      self.description = opts[:description]
      self.value       = opts[:value]
    end

    # CFN stack syntax
    def to_cf
      cf = { 'Value' => Serializer.dump(value) }
      cf['Description'] = description if description
      cf
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
humidifier-1.7.0 lib/humidifier/output.rb
humidifier-1.6.1 lib/humidifier/output.rb
humidifier-1.6.0 lib/humidifier/output.rb
humidifier-1.4.2 lib/humidifier/output.rb
humidifier-1.4.1 lib/humidifier/output.rb
humidifier-1.4.0 lib/humidifier/output.rb
humidifier-1.3.1 lib/humidifier/output.rb
humidifier-1.2.1 lib/humidifier/output.rb