Method: Stove::RakeTask#initialize
- Defined in:
- lib/stove/rake_task.rb
#initialize(name = nil) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
9 10 11 12 13 14 15 16 |
# File 'lib/stove/rake_task.rb', line 9 def initialize(name = nil) yield self if block_given? desc 'Publish this cookbook' unless ::Rake.application.last_comment task(name || :publish) do |t, args| Cli.new(stove_opts || []).execute! end end |