module Rake::Distribute::DSL

Adds ‘distribute` method to the top-level namespace.

Public Instance Methods

distribute(item_class, &block) click to toggle source

Distribute an item to some place

## Examples:

distribute :FileItem do
  from "/path/from"
  to "/path/to"
end

distribute :ErbFile do
  from "/path/from"
  to "/path/to"
  with_context {:a => 1, :b => 2}
end
# File lib/rake/distribute/dsl.rb, line 18
def distribute(item_class, &block)
  Rake::Distribute::Core.instance.distribute(item_class, &block)
end