disu.se

TasksModule

Namespace

Inventory::Rake

Namespace for Rake tasks using an Inventory.

Children

Clean

Tasks for cleaning up a project directory.

Compile

Defines tasks for compiling and cleaning extensions.

Gem

Defines RubyGems-related tasks.

Inventory

Tasks related to the inventory.

Class Methods

define(inventoryInventory, optionsHash = {})self#

Sets the default .inventory to inventory, then defines Clean, Compile, Inventory, and Gem tasks.

A task named “check” will already have been created. This task is meant to depend on tasks that check the package before distribution.

Options
:gem#to_proc = proc{}

Block to pass to Gem#initialize

unless_installing_dependencies{ … }?self#

Yields if the top-level tasks that Rake’s running don’t include any of

  • deps:install

  • deps:install:user

  • gem:deps:install

  • gem:deps:install:user

that is, Rake’s not being run to install the inventory’s dependencies.

inventoryInventory#

Returns the default inventory to use for tasks.

inventory=(valueInventory)Inventory#

Sets and returns the default inventory to use for tasks.

mostlycleanfilesArray<String>#

Returns the files to clean when running the “mostlyclean” task.

cleanfilesArray<String>#

Returns the files to clean when running the “clean” task.

distcleanfilesArray<String>#

Returns the files to clean when running the “distclean” task.