disu.se

InventoryClass

Namespace

Inventory::Rake::Tasks

Ancestors
  1. Rake::DSL

  2. Object

Tasks related to the inventory.

Constructor

initialize(optionsHash = {}){ |taskself| … }?#

Sets up tasks based on inventory, optionally yields the task object for further customization, then #defines the tasks.

Options
:inventoryInventory = Inventory::Rake::Tasks.inventory

The inventory to use

:patternString = '{ext/**/*.{[ch], rb}, {lib/test}/**/*.rb}'

The pattern to use when looking for files not listed in inventory

Instance Methods

define#

Defines the following task:

inventory:check

Check that the inventory is correct by looking for files not listed in the inventory that match the pattern and for files listed in the inventory that don’t exist; depends on distclean.

inventory=(valueInventory)Inventory#

Sets and returns the inventory to use: value.

pattern=(valueString)String#

Sets and returns the pattern to use: value.