Class: Rake::Ivy::Tasks

Inherits:
TaskLib
  • Object
show all
Defined in:
lib/rake/ivy_extension.rb

Instance Method Summary collapse

Constructor Details

#initialize(ivy = nil) {|@ivy| ... } ⇒ Tasks

Returns a new instance of Tasks.

Yields:

  • (@ivy)


293
294
295
296
297
298
299
# File 'lib/rake/ivy_extension.rb', line 293

def initialize(ivy = nil, &block)
  @ivy = ivy || Rake::Ivy::IvyConfig.new(Rake.application)
  yield @ivy if block_given?
  Rake.application.ivy = @ivy
  
  define
end