lib/launcher/stack.rb
# Retrieves the URL from the Amazon API that determines the estimated cost for the
# loaded cloudformation template.
#
# @example Retrieving the URL to estimate the template cost.
#   template = Launcher::Template.new(options[:template])
#   stack = Launcher::Stack.new("foo", template)
#   url = stack.cost
#
# @return [String] the url to estimate the template cost.
Retrieves the URL from the Amazon API that determines the estimated cost for the
loaded cloudformation template.
Retrieves the URL from the Amazon API that determines the estimated cost for the loaded cloudformation template .
def cost
      if aws_configured? && valid?
        url = cloudformation.estimate_template_cost(@template.read, filtered_parameters)
        message url, :type => :ok
        return url
      else
        message "AWS not configured.", :type => :fatal
      end
    end
def cost if aws_configured? && valid? url = cloudformation . estimate_template_cost ( @template . read , filtered_parameters ) message url , :type => :ok return url else message "AWS not configured." , :type => :fatal end end
Retrieves the URL from the Amazon API that determines the estimated cost for the
loaded cloudformation template.
Retrieves the URL from the Amazon API that determines the estimated cost for the loaded cloudformation template .
the url to estimate the template cost.
the url to estimate the template cost .
String
example
Retrieving the URL to estimate the template cost. template = Launcher::Template.new(options[:template]) stack = Launcher::Stack.new("foo", template) url = stack.cost
Retrieving the URL to estimate the template cost . template = Launcher :: Template . new ( options [ : template ] ) stack = Launcher :: Stack . new ( " foo " template ) url = stack . cost