Module: Rake::Distribute::DSL

Defined in:
lib/rake/distribute/dsl.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#distribute(item_class, &block) ⇒ Object

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


18
19
20
# File 'lib/rake/distribute/dsl.rb', line 18

def distribute(item_class, &block)
  Rake::Distribute::Core.instance.distribute(item_class, &block)
end