You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

s3deployer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3deployer

0.0.7
bundlerRubygems
Version published
Maintainers
1
Created
Source

Deploy A Pile of Stuff to S3

Because sometimes, you just want to shove a bunch of stuff onto S3

Deploying via a Script

deployer = S3Deployer.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'])
deployer.deploy("#{Dir.pwd}/directory_to_deploy", "amazon.bucket.name")

Deploying via the Command Line

Just cd to the directory you want to deploy and run

s3deploy -b BUCKET_NAME

Deploying with multiple people

When working with multiple people who may be deploying code at the same time it's helpful to make sure that only one deployment happens at a time. Use with_lock for this.

deployer = S3Deployer.new(ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'])
deployer.bucket_name = "amazon.bucket.name"

deployer.with_lock do |deployer|
    deployer.deploy("#{Dir.pwd}/directory_to_deploy")
end

ShoveIt

FAQs

Package last updated on 11 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts