lib/humidifier/output.rb in humidifier-1.7.0 vs lib/humidifier/output.rb in humidifier-1.8.0

- old
+ new

@@ -1,18 +1,20 @@ module Humidifier # Represents a CFN stack output class Output - attr_accessor :description, :value + attr_reader :description, :value, :export_name def initialize(opts = {}) - self.description = opts[:description] - self.value = opts[:value] + @description = opts[:description] + @value = opts[:value] + @export_name = opts[:export_name] end # CFN stack syntax def to_cf cf = { 'Value' => Serializer.dump(value) } cf['Description'] = description if description + cf['Export'] = { 'Name' => export_name } if export_name cf end end end