Method: Jets::Resource::ApiGateway::Method#replacements

Defined in:
lib/jets/resource/api_gateway/method.rb

#replacementsObject



52
53
54
55
56
57
58
# File 'lib/jets/resource/api_gateway/method.rb', line 52

def replacements
  # mimic task to grab replacements, we want the namespace to be the lambda function's namespace
  resources = [definition]
  task = Jets::Lambda::Task.new(@route.controller_name, @route.action_name,
           resources: resources)
  task.replacements
end