Class: Jets::Resource::ApiGateway::RestApi::LogicalId::Message
- Inherits:
-
Object
- Object
- Jets::Resource::ApiGateway::RestApi::LogicalId::Message
- Defined in:
- lib/jets/resource/api_gateway/rest_api/logical_id/message.rb
Instance Method Summary collapse
Instance Method Details
#auto_replace_disabled ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/jets/resource/api_gateway/rest_api/logical_id/message.rb', line 42 def auto_replace_disabled " It looks like `config.api.auto_replace = false`. IE:\n\n config/application.rb\n\n config.api.auto_replace = false\n\n The deploy will not continue. See:\n\n * https://rubyonjets.com/docs/app-config/reference/\n * https://rubyonjets.com/docs/routing/custom-domain/\n\n EOL\nend\n" |
#custom_domain ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/jets/resource/api_gateway/rest_api/logical_id/message.rb', line 10 def custom_domain domain_name = Jets.config.domain.name if domain_name " It looks like you have already set up a custom domain.\n The domain name: \#{domain_name}\n\n So you should be good to go as the custom domain will be updated with the new API Gateway endpoint.\n To avoid this prompt in the future, you can configure:\n\n config/application.rb\n\n config.api.auto_replace = true\n\n More info: custom domain docs: https://rubyonjets.com/docs/routing/custom-domain/\n EOL\n else\n <<~EOL\n To avoid this prompt in the future, you can configure:\n\n config/application.rb\n\n config.api.auto_replace = true\n\n However, you should also set up a custom domain for a \"stable\" endpoint.\n\n https://rubyonjets.com/docs/routing/custom-domain/\n\n EOL\n end\nend\n" |
#routes_changed ⇒ Object
3 4 5 6 7 8 |
# File 'lib/jets/resource/api_gateway/rest_api/logical_id/message.rb', line 3 def routes_changed " Routes Change Detection: Jets has detected that a new brand API Gateway is required to be deployed.\n IMPORTANT: This will result in the API Gateway endpoint changing.\n EOL\nend\n" |