Class: Rake::CompositePublisher
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rake/contrib/compositepublisher.rb |
Overview
Manage several publishers as a single entity.
Class Method Summary
- .new ⇒ CompositePublisher constructor
Instance Method Summary
Constructor Details
.new ⇒ CompositePublisher
# File 'lib/rake/contrib/compositepublisher.rb', line 5
def initialize @publishers = [] end
Instance Method Details
#add(pub)
Add a publisher to the composite.
# File 'lib/rake/contrib/compositepublisher.rb', line 10
def add(pub) @publishers << pub end
#upload
Upload all the individual publishers.
# File 'lib/rake/contrib/compositepublisher.rb', line 15
def upload @publishers.each { |p| p.upload } end