Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

S3 Writer extension for MassiveSitemap

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENCE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 massive_sitemap-writer-s3.gemspec
README.md

MassiveSitemap S3 Writer

S3 Writer extension for MassiveSitemap

Usage

S3 Writer extends MassiveSitemap::Writer::GzipFile for uploading the generated siemap file directly to S3. The state of the sitemap files is read from there too, which makes permanenty storage of the files localy obsolete.

For initialization the S3 options are required as first parameter:

require 'massive_sitemap'
require 'massive_sitemap/writer/s3'

s3_options = { :access_key_id => ..., :secret_access_key => ..., :bucket => ... }
writer = MassiveSitemap::Writer::S3.new(s3_options)

MassiveSitemap::generate(:url => ..., :writer => writer)

Dependencies

Obviously depends on a S3 library which is the fabouly slick S3 gem.

For further information check Massive Sitemap gem

Contributing

We'll check out your contribution if you:

  • Provide a comprehensive suite of tests for your fork.
  • Have a clear and documented rationale for your changes.
  • Package these up in a pull request.

We'll do our best to help you out with any contribution issues you may have.

License

The license is included as LICENSE in this directory.

Something went wrong with that request. Please try again.