Module: Wrapbox
- Defined in:
- lib/wrapbox/log_fetcher.rb,
lib/wrapbox.rb,
lib/wrapbox/cli.rb,
lib/wrapbox/job.rb,
lib/wrapbox/version.rb,
lib/wrapbox/runner/ecs.rb,
lib/wrapbox/configuration.rb,
lib/wrapbox/runner/docker.rb,
lib/wrapbox/config_repository.rb,
lib/wrapbox/log_fetcher/awslogs.rb,
lib/wrapbox/log_fetcher/papertrail.rb
Overview
LogFetcher Implementation requires two methods.
-
run (start log fetching asynchronously)
-
stop (stop log fetching)
Defined Under Namespace
Modules: Job, LogFetcher, Runner Classes: Cli, ConfigRepository, Configuration
Constant Summary collapse
- CLASS_NAME_ENV =
"WRAPBOX_CLASS_NAME".freeze
- METHOD_NAME_ENV =
"WRAPBOX_METHOD_NAME".freeze
- METHOD_ARGS_ENV =
"WRAPBOX_METHOD_ARGS".freeze
- VERSION =
"0.9.0"
Class Attribute Summary collapse
-
.logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
- .configs ⇒ Object
- .configure {|configs| ... } ⇒ Object
- .load_config(filename) ⇒ Object
- .run(*args, runner: nil, config_name: nil, **options) ⇒ Object
- .run_cmd(*args, runner: nil, config_name: nil, **options) ⇒ Object
Class Attribute Details
.logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/wrapbox.rb', line 9 def logger @logger end |
Class Method Details
.configs ⇒ Object
15 16 17 |
# File 'lib/wrapbox.rb', line 15 def configs @configs ||= ConfigRepository.new end |
.configure {|configs| ... } ⇒ Object
19 20 21 |
# File 'lib/wrapbox.rb', line 19 def configure yield configs end |
.load_config(filename) ⇒ Object
11 12 13 |
# File 'lib/wrapbox.rb', line 11 def load_config(filename) configs.load_yaml(filename) end |
.run(*args, runner: nil, config_name: nil, **options) ⇒ Object
23 24 25 26 |
# File 'lib/wrapbox.rb', line 23 def run(*args, runner: nil, config_name: nil, **) config = @configs.get(config_name) config.run(*args, **) end |
.run_cmd(*args, runner: nil, config_name: nil, **options) ⇒ Object
28 29 30 31 |
# File 'lib/wrapbox.rb', line 28 def run_cmd(*args, runner: nil, config_name: nil, **) config = @configs.get(config_name) config.run_cmd(*args, **) end |