Class: Jets::Resource::ApiGateway::RestApi::LogicalId::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/resource/api_gateway/rest_api/logical_id/message.rb

Instance Method Summary collapse

Instance Method Details

#auto_replace_disabledObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/jets/resource/api_gateway/rest_api/logical_id/message.rb', line 32

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_domainObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/jets/resource/api_gateway/rest_api/logical_id/message.rb', line 10

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

#routes_changedObject



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"