1.1.10 • Published 8 years ago

rm-s3-put-dir v1.1.10

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

rm-s3-put-dir

Function and command line utility for RISD Media to put directories on S3.

As a function:

var putDir = require('rm-s3-put-dir');

var pusher = putDir({
	aws: {
		key: String,
		secret: String
	},
	directory: String,
	bucket: String,
	keyPrefix: String,   // optional
    isWebsite: Boolean,  // optional
	gitSuffix: Boolean   // optional
});

pusher.on('end', function () {
	console.log('Done uploading!')
});

As command line utility:

rm-s3-put-dir directory
    --bucket
    --aws
    --branchSuffix
    --keyPrefix

`directory`   The path to the file to upload.
              Required.

`bucket`      The name of the bucket to put files into.
              Required.

`aws`         Path to JSON file with AWS credentials.
              Default is `~/.risdmedia/aws.json`.
              Expects two keys: `key` & `secret`.
              Required.

`gitSuffix`   Boolean flag. If included, the bucket
              name will be suffixed with `-` & the
              name of the current branch.

`isWebsite`   Boolean flag. If included, the bucket
              will be configured as a static website.

`keyPrefix`   Prefix for each file uploaded to
              the bucket.
              Optional. Defaults to an empty string.

Example

./bin/cmd public --bucket=risdmedia-assets

Using `--gitSuffix` from a branch named `develop`,
would produce publishing to a bucket named
`risdmedia-assets-develop`.

./bin/cmd public --bucket=risdmedia-assets --gitSuffix
1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago