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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10ed99e03229c37d05e89b9d54f7ca3fa5ed9c61
4
- data.tar.gz: bc853f7697f4288928a281b208fd348f47135f76
3
+ metadata.gz: 73a67a19dcdfbb8f9aee5775e7b8daefcbb13155
4
+ data.tar.gz: 8346b5da14b5506205bc9eb56c5128b0c999f6e3
5
5
  SHA512:
6
- metadata.gz: 52ccf37f0217581071d908e9010fd9d3ccfa20e19b12dcfbf4d4c6547d6bb224910103ff1dcbc12e8c1288212b727c8d5820dc01c8a595e44bf406e1bd09d777
7
- data.tar.gz: 403f0678c256ae11d43028093ce7d82c842d5a82312432fc198c11c3026ab6fe27743678d954abca200aa7d67102220875d79356a5f7feecd9de60ae5d91a093
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 now override the destination bucket using the --bucket switch.
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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module S3Sync
3
- VERSION = "3.0.45"
3
+ VERSION = "3.0.46"
4
4
  end
5
5
  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.45
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-04-16 00:00:00.000000000 Z
12
+ date: 2015-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core