Class: CompositePublisher
- Inherits:
-
Object
- Object
- CompositePublisher
- Defined in:
- lib/rake/contrib/publisher.rb
Overview
TODO: Move to contrib/sshpublisher – Manage several publishers as a single entity.
Instance Method Summary collapse
-
#add(pub) ⇒ Object
Add a publisher to the composite.
-
#initialize ⇒ CompositePublisher
constructor
:nodoc:.
-
#upload ⇒ Object
Upload all the individual publishers.
Constructor Details
#initialize ⇒ CompositePublisher
:nodoc:
21 22 23 |
# File 'lib/rake/contrib/publisher.rb', line 21 def initialize @publishers = [] end |
Instance Method Details
#add(pub) ⇒ Object
Add a publisher to the composite.
26 27 28 |
# File 'lib/rake/contrib/publisher.rb', line 26 def add(pub) @publishers << pub end |
#upload ⇒ Object
Upload all the individual publishers.
31 32 33 |
# File 'lib/rake/contrib/publisher.rb', line 31 def upload @publishers.each { |p| p.upload } end |