Class: Kitchen::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Kitchen::RakeTasks
- Defined in:
- lib/kitchen/rake_tasks.rb
Overview
Kitchen Rake task generator.
Instance Attribute Summary collapse
-
#config ⇒ Config
readonly
A Kitchen::Config.
Instance Method Summary collapse
-
#initialize(cfg = {}) {|self| ... } ⇒ RakeTasks
constructor
Creates Kitchen Rake tasks and allows the callee to configure it.
Constructor Details
#initialize(cfg = {}) {|self| ... } ⇒ RakeTasks
Creates Kitchen Rake tasks and allows the callee to configure it.
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/kitchen/rake_tasks.rb', line 30 def initialize(cfg = {}) @loader = Kitchen::Loader::YAML.new( project_config: ENV["KITCHEN_YAML"], local_config: ENV["KITCHEN_LOCAL_YAML"], global_config: ENV["KITCHEN_GLOBAL_YAML"] ) @config = Kitchen::Config.new( { loader: @loader }.merge(cfg) ) Kitchen.logger = Kitchen.default_file_logger(nil, false) yield self if block_given? define end |
Instance Attribute Details
#config ⇒ Config (readonly)
Returns a Kitchen::Config.
45 46 47 |
# File 'lib/kitchen/rake_tasks.rb', line 45 def config @config end |