Class: Emeril::ThorTasks

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

Overview

Emeril Rake task generator.

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

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

Yields:

  • (self)

    gives itself to the block



24
25
26
27
28
29
# File 'lib/emeril/thor_tasks.rb', line 24

def initialize(*args)
  super
  @config = { :logger => Chef::Log }
  yield self if block_given?
  define
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



18
19
20
# File 'lib/emeril/thor_tasks.rb', line 18

def config
  @config
end