Class: Hostess::Indexer
- Inherits:
-
Object
- Object
- Hostess::Indexer
- Defined in:
- lib/hostess/indexer.rb
Instance Method Summary collapse
Instance Method Details
#update_index ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/hostess/indexer.rb', line 21 def update_index log "Updating the index" upload("specs.4.8.gz", specs_index) log "Uploaded all specs index" upload("latest_specs.4.8.gz", latest_index) log "Uploaded latest specs index" upload("prerelease_specs.4.8.gz", prerelease_index) log "Uploaded prerelease specs index" log "Finished updating the index" end |
#write_gem(body, spec) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/hostess/indexer.rb', line 7 def write_gem(body, spec) gem_file = directory.files.create( :body => body.string, :key => "gems/#{spec.original_name}.gem", :public => true ) gem_spec = directory.files.create( :body => Gem.deflate(Marshal.dump(spec)), :key => "quick/Marshal.4.8/#{spec.original_name}.gemspec.rz", :public => true ) end |