Sha256: cd8f82ba399dee4e603306f59f2d7716cb0886e0a649970dbed1efbca79ef4dd

Contents?: true

Size: 381 Bytes

Versions: 239

Compression:

Stored size: 381 Bytes

Contents

#!/usr/bin/env ruby

module Rake

  # Manage several publishers as a single entity.
  class CompositePublisher
    def initialize
      @publishers = []
    end
    
    # Add a publisher to the composite.
    def add(pub)
      @publishers << pub
    end
    
    # Upload all the individual publishers.
    def upload
      @publishers.each { |p| p.upload }
    end
  end

end


Version data entries

239 entries across 184 versions & 17 rubygems

Version Path
rake-0.8.1 lib/rake/contrib/compositepublisher.rb
rake-0.8.4 lib/rake/contrib/compositepublisher.rb
rake-0.8.6 lib/rake/contrib/compositepublisher.rb
rake-0.8.2 lib/rake/contrib/compositepublisher.rb
rake-0.8.5 lib/rake/contrib/compositepublisher.rb
reap-4.0 dev/compositepublisher.rb
reap-4.3.2 note/compositepublisher.rb
reap-4.0.0 dev/compositepublisher.rb
reap-4.5.1 doc/note/compositepublisher.rb
reap-4.5.0 doc/note/compositepublisher.rb
reap-4.4.1 doc/note/compositepublisher.rb
reap-4.4.0 doc/note/compositepublisher.rb
reap-4.3.4 doc/note/compositepublisher.rb
reap-4.3.3 note/compositepublisher.rb
reap-6.0.2 forge/reference/compositepublisher.rb
reap-5.10.10 dev/compositepublisher.rb
reap-6.0.1 forge/reference/compositepublisher.rb
reap-5.0.0 doc/note/compositepublisher.rb
reap-4.5.2 doc/note/compositepublisher.rb