Sha256: 22c29203fadc2bb1c58233eba1d14a981818e7cd8b406bb9b3840095c4c706e6
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
module Stove class Runner attr_reader :cookbook attr_reader :options def initialize(cookbook, options = {}) @cookbook = cookbook @options = options end def run run_plugin :git if Config.artifactory run_plugin :artifactory else run_plugin :supermarket end end private def run_plugin(name) if skip?(name) Stove::Log.info { "Skipping plugin `:#{name}'" } else Stove::Log.info { "Running plugin `:#{name}'" } klass = Plugin.const_get(Util.camelize(name)) klass.new(cookbook, options).run end end def skip?(thing) key = "no_#{thing}".to_sym !!options[key] end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
chef-stove-7.1.6 | lib/stove/runner.rb |
stove-7.1.6 | lib/stove/runner.rb |