123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

  • #add(pub)

    Add a publisher to the composite.

  • #upload

    Upload all the individual publishers.

Constructor Details

.newCompositePublisher

[ GitHub ]

  
# File 'lib/rake/contrib/compositepublisher.rb', line 5

def initialize
  @publishers = []
end

Instance Method Details

#add(pub)

Add a publisher to the composite.

[ GitHub ]

  
# File 'lib/rake/contrib/compositepublisher.rb', line 10

def add(pub)
  @publishers << pub
end

#upload

Upload all the individual publishers.

[ GitHub ]

  
# File 'lib/rake/contrib/compositepublisher.rb', line 15

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