module Convection::DSL::Cloudfile

DSL for Cloudfile

Public Instance Methods

attribute(stack, key, value) click to toggle source
# File lib/convection/model/cloudfile.rb, line 27
def attribute(stack, key, value)
  @attributes.set(stack, key, value)
end
stack(stack_name, template, options = {}, &block) click to toggle source

Adds a stack with the provided options to the list of stacks.

@see Convection::Control::Stack#initialize

# File lib/convection/model/cloudfile.rb, line 34
def stack(stack_name, template, options = {}, &block)
  options[:region] ||= region
  options[:exclude_availability_zones] = exclude_availability_zones unless exclude_availability_zones.nil?
  options[:cloud] = name
  options[:attributes] = attributes
  options[:retry_limit] = retry_limit

  @stacks[stack_name] = Control::Stack.new(stack_name, template, options, &block)
  @deck << @stacks[stack_name]
end
stack_group(group_name, group_list) click to toggle source
# File lib/convection/model/cloudfile.rb, line 45
def stack_group(group_name, group_list)
  @stack_groups[group_name] = group_list
end
template(*args, &block) click to toggle source

Helper to define a template in-line

# File lib/convection/model/cloudfile.rb, line 23
def template(*args, &block)
  Model::Template.new(*args, &block)
end