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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcc2af1e16bc943f81b35e5e6b6c0a6ff0732e46
4
- data.tar.gz: ce9be3ed335b543a576b2acd20c282e5e6c36ec2
3
+ metadata.gz: c124261832acceb68dc818d7b65d66ef4e2ca120
4
+ data.tar.gz: fc8dce0accd6d72786f5a68ec7991629706125a6
5
5
  SHA512:
6
- metadata.gz: 992b8ce5962fff108441f803d171673d6f343bfd8770652c44fb3c627d9fbf499ede38d16fc1a62a5418a1474cf20daece2135d486dd3d88ae5ac93a133ac1af
7
- data.tar.gz: 94da51804f52f6b7674f3f0e5b4bf61852f048178ff01caf999f944b0cc6329d3053e9c96b89fad777be134a2922dbdaa3ec4a43282f26372480332a03946eca
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 MissingPackageFile, "package file #{source} does not exist"
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 "uploading #{localfile} to #{s3file}"
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
@@ -1,3 +1,3 @@
1
1
  module Automan
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
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.3
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-02-23 00:00:00.000000000 Z
12
+ date: 2015-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler