Sha256: 124c592cf34021ab40b15b96b338bd62b4e6a9a39f47335ff88d0b2acb3c53bd

Contents?: true

Size: 1.53 KB

Versions: 15

Compression:

Stored size: 1.53 KB

Contents

class Jets::Cfn::Resource::ApiGateway::RestApi::LogicalId
  class Message
    def routes_changed
      <<~EOL
      Routes Change Detection: Jets has detected that a new brand API Gateway is required to be deployed.
      IMPORTANT: This will result in the API Gateway endpoint changing.
      EOL
    end

    def custom_domain
      domain_name = Jets.config.domain.name
      if domain_name
        <<~EOL
        It looks like you have already set up a custom domain.
        The domain name: #{domain_name}

        So you should be good to go as the custom domain will be updated with the new API Gateway endpoint.
        To avoid this prompt in the future, you can configure:

        config/application.rb

            config.api.auto_replace = true

        More info: custom domain docs: https://rubyonjets.com/docs/routing/custom-domain/
        EOL
      else
        <<~EOL
        To avoid this prompt in the future, you can configure:

        config/application.rb

            config.api.auto_replace = true

        However, you should also set up a custom domain for a "stable" endpoint.

        https://rubyonjets.com/docs/routing/custom-domain/

        EOL
      end
    end

    def auto_replace_disabled
      <<~EOL
      It looks like `config.api.auto_replace = false`. IE:

      config/application.rb

          config.api.auto_replace = false

      The deploy will not continue. See:

      * https://rubyonjets.com/docs/app-config/reference/
      * https://rubyonjets.com/docs/routing/custom-domain/

      EOL
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.12 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.11 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.10 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.9 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.8 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.7 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.6 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.5 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.4 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.3 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.2 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.1 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.0 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb
jets-5.0.0.beta1 lib/jets/cfn/resource/api_gateway/rest_api/logical_id/message.rb