class CompositePublisher
Manage several publishers as a single entity.
Public Class Methods
new()
click to toggle source
# File lib/rake/contrib/publisher.rb 15 def initialize 16 @publishers = [] 17 end
Public Instance Methods
add(pub)
click to toggle source
Add a publisher to the composite.
# File lib/rake/contrib/publisher.rb 20 def add(pub) 21 @publishers << pub 22 end
upload()
click to toggle source
Upload all the individual publishers.
# File lib/rake/contrib/publisher.rb 25 def upload 26 @publishers.each { |p| p.upload } 27 end