Sha256: b7a169bc0270c74ff9e28137502c590eee2bea903eb13639297d053a9eab9ff0

Contents?: true

Size: 1.36 KB

Versions: 31

Compression:

Stored size: 1.36 KB

Contents

class Jets::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
      api = Jets::Resource::ApiGateway::DomainName.new
      domain_name = api.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
        "Please set up a custom domain https://rubyonjets.com/docs/routing/custom-domain/"
      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

31 entries across 31 versions & 2 rubygems

Version Path
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.5 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.4 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.3 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.2 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.1 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.1.0 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.23 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.22 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.21 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.20 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.19 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.18 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.17 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.16 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.15 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.14 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.13 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.12 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
jets-3.0.11 lib/jets/resource/api_gateway/rest_api/logical_id/message.rb