class Emeril::RakeTasks
Emeril
Rake task generator.
@author Fletcher Nichol <fnichol@nichol.ca>
Attributes
config[RW]
Public Class Methods
new() { |self| ... }
click to toggle source
Creates Emeril
Rake tasks and allows the callee to configure it.
@yield [self] gives itself to the block
# File lib/emeril/rake_tasks.rb, line 21 def initialize @config = { :logger => Chef::Log } yield self if block_given? define end
Private Instance Methods
define()
click to toggle source
# File lib/emeril/rake_tasks.rb, line 29 def define metadata = Emeril::MetadataChopper.new("metadata.rb") desc "Create git tag for #{metadata[:name]}-#{metadata[:version]}" \ " and push to the Community Site" task "release" do Chef::Knife.new.configure_chef Emeril::Releaser.new(@config).run end end