Method: Inventory::Rake::Tasks::Compile#initialize
- Defined in:
- lib/inventory-rake-1.0/tasks/compile.rb
#initialize(options = {}) {|?| ... } ⇒ Compile
Sets up tasks based on INVENTORY, optionally yields the task object for further customization, then #defines the tasks.
15 16 17 18 19 |
# File 'lib/inventory-rake-1.0/tasks/compile.rb', line 15 def initialize( = {}) self.inventory = .fetch(:inventory, Inventory::Rake::Tasks.inventory) yield self if block_given? define end |