Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple guard library that syncs local directories with S3 as files are changed.
Ruby
Branch: master

This branch is 14 commits ahead of jwelshiv:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
.gitignore
Gemfile
README.md
Rakefile
guard-s3.gemspec

README.md

guard-s3

guard-s3 is a simple guard library that syncs local directories with S3 as files are changed.

Usage

This is a sample Guardfile that will automatically upload all files in the Guard watchdir directory into the specified s3 bucket. By default, watchdir is the directory from which guard was called, but it can be specified using the --watchdir/-w parameter. See the guard main documentation for details.

opts = {
  :access_key_id      => 'ACCESS_KEY_ID_XXXXXX',
  :secret_access_key  => 'SECRET_ACCESS_KEY_XXXXXXXXXXXXXXXXXXXXXX',
  :bucket             => "mybucket",
  :s3_permissions     => :public_read
}

guard 's3', opts do
  watch(/.*/)
end

Dependencies

  • guard
  • aws-s3

Changes this version

  • Fixed watchdir behavior. Guard-s3 will now watch and upload from the directory path specified in the Guardfile relative to the guard watchdir.
Something went wrong with that request. Please try again.