s3stream 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +11 -1
- data/lib/s3stream/credentials.rb +1 -1
- data/lib/s3stream/version.rb +1 -1
- metadata +7 -7
data/README
CHANGED
@@ -3,6 +3,12 @@ Installation
|
|
3
3
|
|
4
4
|
gem install s3stream --development
|
5
5
|
|
6
|
+
Or if that doesn't work for some reason:
|
7
|
+
|
8
|
+
gem install aws-s3 --version 0.6.2
|
9
|
+
gem install aws-sdk --version 1.3.5
|
10
|
+
gem install s3stream
|
11
|
+
|
6
12
|
Configuration
|
7
13
|
=============
|
8
14
|
|
@@ -35,4 +41,8 @@ Usage
|
|
35
41
|
|
36
42
|
And if you want to get fancy:
|
37
43
|
|
38
|
-
% cat
|
44
|
+
% cat \
|
45
|
+
<(s3stream fetch mybucket log0.log.gz | gunzip) \
|
46
|
+
<(s3stream fetch mybucket log1.log.gz | gunzip) \
|
47
|
+
| lzop -9 \
|
48
|
+
| s3stream store mybucket combined.log.lzo
|
data/lib/s3stream/credentials.rb
CHANGED
@@ -6,7 +6,7 @@ module S3Stream
|
|
6
6
|
access_key_id, secret_access_key = nil
|
7
7
|
|
8
8
|
# Try AWS tools' standard way
|
9
|
-
if File.file?(ENV['AWS_CREDENTIAL_FILE'])
|
9
|
+
if ENV['AWS_CREDENTIAL_FILE'] && File.file?(ENV['AWS_CREDENTIAL_FILE'])
|
10
10
|
File.open(ENV['AWS_CREDENTIAL_FILE']) do |f|
|
11
11
|
f.lines.each do |line|
|
12
12
|
access_key_id = $1 if line =~ /^AWSAccessKeyId=(.*)$/
|
data/lib/s3stream/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70189332955800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.14.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70189332955800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aws-sdk
|
27
|
-
requirement: &
|
27
|
+
requirement: &70189332954980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.3.5
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70189332954980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: aws-s3
|
38
|
-
requirement: &
|
38
|
+
requirement: &70189332949680 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.6.2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70189332949680
|
47
47
|
description: Stream files on S3 to stdout or from stdin
|
48
48
|
email:
|
49
49
|
- chris@kindkid.com
|