Class: Stove::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Stove::RakeTask
- Defined in:
- lib/stove/rake_task.rb
Instance Attribute Summary collapse
-
#stove_opts ⇒ Object
Returns the value of attribute stove_opts.
Instance Method Summary collapse
-
#initialize(name = nil) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
- #log_level=(level) ⇒ Object
Constructor Details
#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_description task(name || :publish) do |t, args| Cli.new(stove_opts || []).execute! end end |
Instance Attribute Details
#stove_opts ⇒ Object
Returns the value of attribute stove_opts.
7 8 9 |
# File 'lib/stove/rake_task.rb', line 7 def stove_opts @stove_opts end |