Class: Emeril::RakeTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/emeril/rake_tasks.rb

Overview

Emeril Rake task generator.

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ RakeTasks

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

Yields:

  • (self)

    gives itself to the block



22
23
24
25
26
# File 'lib/emeril/rake_tasks.rb', line 22

def initialize
  @config = { :logger => Chef::Log }
  yield self if block_given?
  define
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



16
17
18
# File 'lib/emeril/rake_tasks.rb', line 16

def config
  @config
end