Class: Kitchen::ThorTasks

Inherits:
Thor
  • Object
show all
Defined in:
lib/kitchen/thor_tasks.rb

Overview

Kitchen Thor task generator.

Author:

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|self| ... } ⇒ ThorTasks

Creates Kitchen Thor tasks and allows the callee to configure it.

Yields:

  • (self)

    gives itself to the block



32
33
34
35
36
37
38
# File 'lib/kitchen/thor_tasks.rb', line 32

def initialize(*args)
  super
  @config = Kitchen::Config.new
  Kitchen.logger = Kitchen.default_file_logger(nil, false)
  yield self if block_given?
  define
end