Class: Stove::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/stove/rake_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil) {|_self| ... } ⇒ RakeTask

Returns a new instance of RakeTask.

Yields:

  • (_self)

Yield Parameters:



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_description
  task(name || :publish) do |t, args|
    Cli.new(stove_opts || []).execute!
  end
end

Instance Attribute Details

#stove_optsObject

Returns the value of attribute stove_opts.



7
8
9
# File 'lib/stove/rake_task.rb', line 7

def stove_opts
  @stove_opts
end

Instance Method Details

#log_level=(level) ⇒ Object



18
19
20
# File 'lib/stove/rake_task.rb', line 18

def log_level=(level)
  Stove.log_level = level
end