Module: SharkOnLambda
- Extended by:
- Forwardable
- Defined in:
- lib/shark_on_lambda.rb,
lib/shark_on_lambda.rb,
lib/shark_on_lambda/query.rb,
lib/shark_on_lambda/request.rb,
lib/shark_on_lambda/secrets.rb,
lib/shark_on_lambda/version.rb,
lib/shark_on_lambda/response.rb,
lib/shark_on_lambda/dispatcher.rb,
lib/shark_on_lambda/application.rb,
lib/shark_on_lambda/errors/base.rb,
lib/shark_on_lambda/configuration.rb,
lib/shark_on_lambda/rspec/helpers.rb,
lib/shark_on_lambda/base_controller.rb,
lib/shark_on_lambda/middleware/base.rb,
lib/shark_on_lambda/jsonapi_renderer.rb,
lib/shark_on_lambda/rspec/env_builder.rb,
lib/shark_on_lambda/jsonapi_controller.rb,
lib/shark_on_lambda/jsonapi_parameters.rb,
lib/shark_on_lambda/middleware/rescuer.rb,
lib/shark_on_lambda/api_gateway_handler.rb,
lib/shark_on_lambda/rspec/jsonapi_helpers.rb,
lib/shark_on_lambda/errors/base_serializer.rb,
lib/shark_on_lambda/middleware/honeybadger.rb,
lib/shark_on_lambda/inferrers/name_inferrer.rb,
lib/shark_on_lambda/middleware/lambda_logger.rb,
lib/shark_on_lambda/rack_adapters/api_gateway.rb,
lib/shark_on_lambda/middleware/jsonapi_rescuer.rb,
lib/shark_on_lambda/concerns/yaml_config_loader.rb,
lib/shark_on_lambda/concerns/resettable_singleton.rb,
lib/shark_on_lambda/inferrers/serializer_inferrer.rb
Overview
Top-level module for this gem.
Defined Under Namespace
Modules: Concerns, Errors, Inferrers, Middleware, RSpec, RackAdapters
Classes: ApiGatewayHandler, Application, BaseController, Configuration, Dispatcher, JsonapiController, JsonapiParameters, JsonapiRenderer, Query, Request, Response, Secrets
Constant Summary
collapse
- VERSION =
'1.0.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
73
74
75
|
# File 'lib/shark_on_lambda.rb', line 73
def logger
@logger ||= Logger.new(STDOUT)
end
|
Class Method Details
.application ⇒ Object
42
43
44
|
# File 'lib/shark_on_lambda.rb', line 42
def application
@application ||= Application.new
end
|
.config ⇒ Object
46
47
48
|
# File 'lib/shark_on_lambda.rb', line 46
def config
Configuration.instance
end
|
50
51
52
|
# File 'lib/shark_on_lambda.rb', line 50
def configure
yield(config, secrets)
end
|
.initialize! {|config, secrets| ... } ⇒ Object
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/shark_on_lambda.rb', line 54
def initialize!
enable_jsonapi!
yield(config, secrets)
Configuration.load(stage)
Secrets.load(stage)
run_initializers
true
end
|
.load_configuration ⇒ Object
.reset_configuration ⇒ Object
77
78
79
80
81
82
83
84
85
86
87
88
|
# File 'lib/shark_on_lambda.rb', line 77
def reset_configuration
known_stage = config.stage
known_root = config.root
Configuration.reset
Secrets.reset
config.root = known_root
config.stage = known_stage
true
end
|
.secrets ⇒ Object
90
91
92
|
# File 'lib/shark_on_lambda.rb', line 90
def secrets
Secrets.instance
end
|