PageRenderTime 32ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/tools/Ruby/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/contrib/compositepublisher.rb

http://github.com/agross/netopenspace
Ruby | 21 lines | 13 code | 5 blank | 3 comment | 0 complexity | e687098288c33fb1d8de2423e7316098 MD5 | raw file
 1module Rake
 2
 3  # Manage several publishers as a single entity.
 4  class CompositePublisher
 5    def initialize
 6      @publishers = []
 7    end
 8
 9    # Add a publisher to the composite.
10    def add(pub)
11      @publishers << pub
12    end
13
14    # Upload all the individual publishers.
15    def upload
16      @publishers.each { |p| p.upload }
17    end
18  end
19
20end
21