Module: ServiceSkeleton
- Extended by:
- Generator
- Includes:
- LoggingHelpers
- Defined in:
- lib/service_skeleton.rb,
lib/service_skeleton/error.rb,
lib/service_skeleton/config.rb,
lib/service_skeleton/runner.rb,
lib/service_skeleton/generator.rb,
lib/service_skeleton/config_class.rb,
lib/service_skeleton/service_name.rb,
lib/service_skeleton/signal_manager.rb,
lib/service_skeleton/config_variable.rb,
lib/service_skeleton/logging_helpers.rb,
lib/service_skeleton/signals_methods.rb,
lib/service_skeleton/config_variables.rb,
lib/service_skeleton/metric_method_name.rb,
lib/service_skeleton/ultravisor_children.rb,
lib/service_skeleton/ultravisor_loggerstash.rb,
lib/service_skeleton/metrics_methods.rb
Defined Under Namespace
Modules: ConfigClass, ConfigVariables, Generator, LoggingHelpers, MetricMethodName, MetricsMethods, ServiceName, SignalsMethods, UltravisorChildren, UltravisorLoggerstash Classes: Config, ConfigVariable, Error, Runner, SignalManager
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Generator
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
32 33 34 |
# File 'lib/service_skeleton.rb', line 32 def config @config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
32 33 34 |
# File 'lib/service_skeleton.rb', line 32 def logger @logger end |
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics.
32 33 34 |
# File 'lib/service_skeleton.rb', line 32 def metrics @metrics end |
Class Method Details
.included(mod) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/service_skeleton.rb', line 23 def self.included(mod) mod.extend ServiceSkeleton::ServiceName mod.extend ServiceSkeleton::ConfigVariables mod.extend ServiceSkeleton::ConfigClass mod.extend ServiceSkeleton::MetricsMethods mod.extend ServiceSkeleton::SignalsMethods mod.extend ServiceSkeleton::UltravisorChildren end |
Instance Method Details
#initialize(*_, metrics:, config:) ⇒ Object
34 35 36 37 38 |
# File 'lib/service_skeleton.rb', line 34 def initialize(*_, metrics:, config:) @metrics = metrics @config = config @logger = @config.logger end |