automan 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/automan/beanstalk/package.rb +1 -1
- data/lib/automan/s3/downloader.rb +10 -1
- data/lib/automan/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: c124261832acceb68dc818d7b65d66ef4e2ca120
|
4
|
+
data.tar.gz: fc8dce0accd6d72786f5a68ec7991629706125a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 268cadbd4b34e011e6063d055b1a8b60aaa7857165895b0a24ce65e91000c9d94adf3db0b14cd061835634d7b59ac01fdd3205090499d53d89a5944f6c00c074
|
7
|
+
data.tar.gz: b6948154f0dddca245436c102600bf8893b10cf318bf3c2e8eb217d3e872b5266d1749ba9566d65e6e3156def95e97a383205df0298f6d4bf1f738daa2bdc334
|
@@ -13,7 +13,7 @@ module Automan::Beanstalk
|
|
13
13
|
|
14
14
|
# verify local package exists
|
15
15
|
unless File.exists? source
|
16
|
-
raise
|
16
|
+
raise MissingPackageFileError, "package file #{source} does not exist"
|
17
17
|
end
|
18
18
|
|
19
19
|
logger.info "Uploading #{source} to #{destination}"
|
@@ -9,7 +9,7 @@ module Automan::S3
|
|
9
9
|
def download
|
10
10
|
log_options
|
11
11
|
|
12
|
-
logger.info "
|
12
|
+
logger.info "downloading #{s3file} to #{localfile}"
|
13
13
|
|
14
14
|
bucket, key = parse_s3_path s3file
|
15
15
|
|
@@ -18,7 +18,16 @@ module Automan::S3
|
|
18
18
|
file.write(chunk)
|
19
19
|
end
|
20
20
|
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def read
|
24
|
+
log_options
|
25
|
+
|
26
|
+
logger.info "returning contents of #{s3file} as string"
|
27
|
+
|
28
|
+
bucket, key = parse_s3_path s3file
|
21
29
|
|
30
|
+
s3.buckets[bucket].objects[key].read
|
22
31
|
end
|
23
32
|
|
24
33
|
end
|
data/lib/automan/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Chalfant
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|