Method: Momo::Resource#tag

Defined in:
lib/momo/resource.rb

#tag(key, value, options = {}) ⇒ Object



148
149
150
151
152
153
154
155
156
157
# File 'lib/momo/resource.rb', line 148

def tag(key, value, options={})
	if !@props["Tags"]
		@props["Tags"] = []
	end

	theTag = { "Key" => key, "Value" => Momo.resolve(value) }
	theTag["PropagateAtLaunch"] = options[:propagate_at_launch] if options[:propagate_at_launch]

	@props["Tags"] << theTag
end