lib/launcher/stack.rb
# Validates the parameters that have been passed into the Stack class upon initialization
# to determine if the Cloudformation will update or create successfully. This method
# will attempt to provide helpful validation error messages if the options are not valid.
#
# @return [Boolean] True if the stack is valid and can be launched, false otherwise.
Validates the parameters that have been passed into the Stack class upon initialization
to determine if the Cloudformation will update or create successfully. This method
will attempt to provide helpful validation error messages if the options are not valid.
Validates the parameters that have been passed into the Stack class upon initialization to determine if the Cloudformation will update or create successfully . This method will attempt to provide helpful validation error messages if the options are not valid .
def valid?
      valid = true
      valid = @template.valid?
      @template.messages { |m,o| message m,o } unless valid
      valid = !missing_parameters?
      missing_parameters.each { |m| message "The parameter [#{m.to_s}] is required.", :type => :fatal } unless valid
      return valid
    end
def valid? valid = true valid = @template . valid? @template . messages { | m , o | message m , o } unless valid valid = ! missing_parameters? missing_parameters . each { | m | message "The parameter [#{m.to_s}] is required." , :type => :fatal } unless valid return valid end
Validates the parameters that have been passed into the Stack class upon initialization
to determine if the Cloudformation will update or create successfully.
Validates the parameters that have been passed into the Stack class upon initialization to determine if the Cloudformation will update or create successfully .
#presume everything is valid
True if the stack is valid and can be launched, false otherwise.
True if the stack is valid and can be launched false otherwise .
Boolean