Class: Rake::Distribute::Item::Base
- Inherits:
-
Object
- Object
- Rake::Distribute::Item::Base
- Includes:
- Rake::DSL
- Defined in:
- lib/rake/distribute/item.rb
Direct Known Subclasses
Instance Method Summary collapse
- #define_tasks ⇒ Object
- #diff(&block) ⇒ Object
- #from(source) ⇒ Object
-
#initialize(&block) ⇒ Base
constructor
A new instance of Base.
- #sanity? ⇒ Boolean
- #to(dest, options = {}) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Base
Returns a new instance of Base.
15 16 17 |
# File 'lib/rake/distribute/item.rb', line 15 def initialize(&block) instance_eval(&block) if block_given? end |
Instance Method Details
#define_tasks ⇒ Object
37 38 39 |
# File 'lib/rake/distribute/item.rb', line 37 def define_tasks raise NotImplementedError end |
#diff(&block) ⇒ Object
29 30 31 |
# File 'lib/rake/distribute/item.rb', line 29 def diff(&block) raise NotImplementedError end |
#from(source) ⇒ Object
19 20 21 |
# File 'lib/rake/distribute/item.rb', line 19 def from(source) @src = source end |
#sanity? ⇒ Boolean
33 34 35 |
# File 'lib/rake/distribute/item.rb', line 33 def sanity? raise SyntaxError, "source: is not defined" unless defined? @src end |
#to(dest, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/rake/distribute/item.rb', line 23 def to(dest, = {}) = @dest = dest end |