s3_download_by_date 0.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -4
- 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: e5a6d6816f1ebd3260559c46515c9a493be909eb
|
4
|
+
data.tar.gz: 11fbd8e591fcb889ee073cc52f6c46634b1166e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f201a79c83e3ed0548d7acc6b594bf1613acc28a39a7513c8604ef2f7cc2069f7e419c1d1a3e6aab3335f9f0d020ecd911618c8e88fcb41ffc502e0486035122
|
7
|
+
data.tar.gz: 6ba7b6db28b474e8482e6f33d1d97dbff5664bde591ff6466f111cd0e906f828e01c06ca0e04314914b2e648c1136faaf447d0603bb79456e499517f189e67ef
|
data/README.md
CHANGED
@@ -4,8 +4,7 @@ S3 Download files by modifed date (Range)
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
$ gem install
|
8
|
-
|
7
|
+
$ gem install s3_download_by_date
|
9
8
|
|
10
9
|
## Configuration
|
11
10
|
add to your ~/.bash_profile (~/.zprofile if using ZSH)
|
@@ -20,7 +19,11 @@ export AWS_SECRET_KEY="YOUR AWS SECRET KEY"
|
|
20
19
|
## Usage
|
21
20
|
|
22
21
|
````bash
|
23
|
-
s3download
|
22
|
+
s3download --bucket=s3-bucket-name \
|
23
|
+
--prefix=folder or file prefix on S3 \
|
24
|
+
--from='yesterday at noon' \
|
25
|
+
--to='today at noon' \
|
26
|
+
--save-to=~/Downloads
|
24
27
|
````
|
25
28
|
|
26
29
|
s3download uses [Chronic](https://github.com/mojombo/chronic) library to set the --from and --to
|
@@ -29,7 +32,12 @@ s3download uses [Chronic](https://github.com/mojombo/chronic) library to set the
|
|
29
32
|
Or download by timezone
|
30
33
|
|
31
34
|
````bash
|
32
|
-
s3download
|
35
|
+
s3download --timezone='Eastern Time (US & Canada)' \
|
36
|
+
--bucket=s3-bucket-name \
|
37
|
+
--prefix=folder_or_file_prefix \
|
38
|
+
--from='yesterday at noon' \
|
39
|
+
--to='today at noon' \
|
40
|
+
--save-to=~/Downloads
|
33
41
|
````
|
34
42
|
|
35
43
|
**Getting a list of timezones strings:**
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_download_by_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ami Mahloof
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|