middleman-s3_sync 3.0.45 → 3.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -1
- data/lib/middleman-s3_sync/commands.rb +4 -0
- data/lib/middleman/s3_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73a67a19dcdfbb8f9aee5775e7b8daefcbb13155
|
4
|
+
data.tar.gz: 8346b5da14b5506205bc9eb56c5128b0c999f6e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b49fae0b5b0f5499d1827e9d8f09d8fbb50502f7ca2b05956cfcd66099e5727a8eba9dd429fcf34003f1200cc55fb0e764e2273028f155d72d88718354827d
|
7
|
+
data.tar.gz: 543ab69d8f55b1230683ee7155b6f631904aacbeeeae50c5253adcb228ac0298366a364e45bfa79504e3f355d64d4d1573130248b400bd9a4a86fde7f0708523
|
data/README.md
CHANGED
@@ -155,11 +155,18 @@ such case, you can pass the ```--force``` option:
|
|
155
155
|
|
156
156
|
## Overriding the destination bucket
|
157
157
|
|
158
|
-
You can
|
158
|
+
You can override the destination bucket using the --bucket switch.
|
159
159
|
The command is:
|
160
160
|
|
161
161
|
$ middleman s3_sync --bucket=my.new.bucket
|
162
162
|
|
163
|
+
## Overriding the destination prefix
|
164
|
+
|
165
|
+
You can override the destination prefix using the `--prefix` switch. The
|
166
|
+
command is:
|
167
|
+
|
168
|
+
$ middleman s3_sync --prefix=my/new/prefix
|
169
|
+
|
163
170
|
## Pushing to a folder within a bucket
|
164
171
|
|
165
172
|
You can push to a folder within an S3 bucket by adding using the prefix
|
@@ -20,6 +20,9 @@ module Middleman
|
|
20
20
|
method_option :bucket, type: :string,
|
21
21
|
desc: "Specify which bucket to use, overrides the configured bucket.",
|
22
22
|
aliases: '-b'
|
23
|
+
method_option :prefix, type: :string,
|
24
|
+
desc: "Specify which prefix to use, overrides the configured prefix.",
|
25
|
+
aliases: '-p'
|
23
26
|
method_option :verbose, type: :boolean,
|
24
27
|
desc: "Adds more verbosity...",
|
25
28
|
aliases: '-v'
|
@@ -37,6 +40,7 @@ module Middleman
|
|
37
40
|
s3_sync_options.force = options[:force] if options[:force]
|
38
41
|
s3_sync_options.bucket = options[:bucket] if options[:bucket]
|
39
42
|
s3_sync_options.verbose = options[:verbose] if options[:verbose]
|
43
|
+
s3_sync_options.prefix = options[:prefix] if options[:prefix]
|
40
44
|
|
41
45
|
::Middleman::S3Sync.sync(s3_sync_options)
|
42
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-s3_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederic Jean
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|