Class: Jets::Resource::ApiGateway::RestApi::Routes::Change

Inherits:
Object
  • Object
show all
Includes:
AwsServices
Defined in:
lib/jets/resource/api_gateway/rest_api/routes/change/to.rb,
lib/jets/resource/api_gateway/rest_api/routes/change.rb,
lib/jets/resource/api_gateway/rest_api/routes/change/base.rb,
lib/jets/resource/api_gateway/rest_api/routes/change/page.rb,
lib/jets/resource/api_gateway/rest_api/routes/change/variable.rb,
lib/jets/resource/api_gateway/rest_api/routes/change/media_types.rb

Overview

Detects route variable changes

Defined Under Namespace

Classes: Base, MediaTypes, Page, To, Variable

Instance Method Summary collapse

Methods included from AwsServices

#apigateway, #aws_lambda, #cfn, #dynamodb, #logs, #s3, #s3_resource, #sns, #sqs, #sts

Methods included from AwsServices::StackStatus

#lookup, #stack_exists?, #stack_in_progress?

Methods included from AwsServices::GlobalMemoist

included

Instance Method Details

#changed?Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'lib/jets/resource/api_gateway/rest_api/routes/change.rb', line 6

def changed?
  return false unless parent_stack_exists?

  MediaTypes.changed? || To.changed? || Variable.changed? || Page.changed? || ENV['JETS_REPLACE_API']
end

#parent_stack_exists?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/jets/resource/api_gateway/rest_api/routes/change.rb', line 12

def parent_stack_exists?
  stack_exists?(Jets::Naming.parent_stack_name)
end