Module: Aho
- Defined in:
- lib/aho.rb,
lib/aho/errors.rb,
lib/aho/version.rb,
lib/aho/configuration.rb,
lib/aho/schema/parser.rb,
lib/aho/metrics/active.rb,
lib/aho/metrics/ignore.rb,
lib/aho/metrics_logger.rb,
lib/aho/metrics_builder.rb,
lib/aho/schema/validator.rb,
lib/aho/web_server/router.rb,
lib/aho/metrics_aggregator.rb,
lib/aho/web_server/application.rb
Defined Under Namespace
Modules: Api, Metrics, Schema, WebServer
Classes: Configuration, Error, MetricsAggregator, MetricsBuilder, MetricsLogger
Constant Summary
collapse
- VERSION =
'0.1.2'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
42
43
44
|
# File 'lib/aho.rb', line 42
def config
@config ||= Configuration.new
end
|
.logger ⇒ Object
46
47
48
|
# File 'lib/aho.rb', line 46
def logger
@logger ||= MetricsLogger.new
end
|
.logs_path ⇒ Object
38
39
40
|
# File 'lib/aho.rb', line 38
def logs_path
FileUtils.mkdir_p("#{root_path}/logs").first
end
|
.metrics ⇒ Object
54
55
56
|
# File 'lib/aho.rb', line 54
def metrics
Aho::MetricsAggregator.new.metrics
end
|
.root_path ⇒ Object
34
35
36
|
# File 'lib/aho.rb', line 34
def root_path
File.dirname __dir__
end
|
.router ⇒ Object
50
51
52
|
# File 'lib/aho.rb', line 50
def router
@router ||= Aho::WebServer::Router.new
end
|