Class: Rake::Distribute::Core
- Inherits:
-
Object
- Object
- Rake::Distribute::Core
- Includes:
- Rake::DSL, Singleton
- Defined in:
- lib/rake/distribute/core.rb
Instance Attribute Summary collapse
-
#distribute_config_file ⇒ Object
Returns the value of attribute distribute_config_file.
-
#items ⇒ Object
Returns the value of attribute items.
Instance Method Summary collapse
- #distribute(item_class, options = {}, &block) ⇒ Object
-
#initialize ⇒ Core
constructor
A new instance of Core.
Constructor Details
#initialize ⇒ Core
Returns a new instance of Core.
15 16 17 |
# File 'lib/rake/distribute/core.rb', line 15 def initialize @items = [] end |
Instance Attribute Details
#distribute_config_file ⇒ Object
Returns the value of attribute distribute_config_file.
11 12 13 |
# File 'lib/rake/distribute/core.rb', line 11 def distribute_config_file @distribute_config_file end |
#items ⇒ Object
Returns the value of attribute items.
12 13 14 |
# File 'lib/rake/distribute/core.rb', line 12 def items @items end |
Instance Method Details
#distribute(item_class, options = {}, &block) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/rake/distribute/core.rb', line 19 def distribute(item_class, ={}, &block) item = get_item_class(item_class).new(&block) item.sanity? item.define_tasks() @items << item end |