Class: CompositePublisher

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/contrib/publisher.rb

Overview

TODO: Move to contrib/sshpublisher – Manage several publishers as a single entity.

Instance Method Summary collapse

Constructor Details

#initializeCompositePublisher

: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

#uploadObject

Upload all the individual publishers.



31
32
33
# File 'lib/rake/contrib/publisher.rb', line 31

def upload
  @publishers.each { |p| p.upload }
end