Sha256: 451511c4f513a1d1a3bfc88564c044f966988268b77e6cfd11c1bc8f642e0f0b
Contents?: true
Size: 789 Bytes
Versions: 3
Compression:
Stored size: 789 Bytes
Contents
module Wrapbox CLASS_NAME_ENV = "WRAPBOX_CLASS_NAME".freeze METHOD_NAME_ENV = "WRAPBOX_METHOD_NAME".freeze METHOD_ARGS_ENV = "WRAPBOX_METHOD_ARGS".freeze class << self def load_config(filename) configs.load_yaml(filename) end def configs @configs ||= ConfigRepository.new end def configure yield configs end def run(*args, runner: nil, config_name: nil, **options) config = @configs.get(config_name) config.run(*args, **options) end def run_cmd(*args, runner: nil, config_name: nil, **options) config = @configs.get(config_name) config.run_cmd(*args, **options) end end end require "wrapbox/version" require "wrapbox/config_repository" require "wrapbox/configuration" require "wrapbox/job"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wrapbox-0.8.2 | lib/wrapbox.rb |
wrapbox-0.8.1 | lib/wrapbox.rb |
wrapbox-0.8.0 | lib/wrapbox.rb |