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
dirty_history-0.1.3 dirty_history/ruby/1.9.1/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb
echoe-4.5.6 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.5.5 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.5.2 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.5.1 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.5 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.4.1 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.4 vendor/rake/lib/rake/contrib/compositepublisher.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb
drake-0.8.7.0.2.4 lib/rake/contrib/compositepublisher.rb
echoe-4.3.1 vendor/rake/lib/rake/contrib/compositepublisher.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb
echoe-4.3 vendor/rake/lib/rake/contrib/compositepublisher.rb
echoe-4.2 vendor/rake/lib/rake/contrib/compositepublisher.rb