buckler 1.0.0 → 1.0.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/bin/bucket +3 -0
- data/lib/buckler/heroku.rb +4 -1
- data/lib/buckler/version.rb +1 -1
- data/test/buckler_test.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e59c95bd7195c63e51cae57dee757ca72ca21a4
|
4
|
+
data.tar.gz: 7818a85d47507551f0a7344535ca5046fd5f6c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dbefae9a4ec9f189e6ac3fd35041254314e82c72e56fc70623d70362d7f5db9ce7db628667da167b2e18db5e3e4fafca23a649e088ff6fc404d52bbc0cca8ed
|
7
|
+
data.tar.gz: b28de920a1b513fefd14e30614f9c6d0ce812431dbb73cd4562971d395122b7a39c235bb28eac58cd27c23a5edc4eef6b1661907ae233d6658ac5247a779469f
|
data/bin/bucket
CHANGED
@@ -12,6 +12,9 @@ rescue Aws::S3::Errors::InvalidAccessKeyId
|
|
12
12
|
rescue Aws::S3::Errors::SignatureDoesNotMatch
|
13
13
|
alert "Invalid AWS Secret Access Key provided for Access Key ID #{Buckler.aws_access_key_id}"
|
14
14
|
exit false
|
15
|
+
rescue Aws::S3::Errors::BadRequest
|
16
|
+
alert "Amazon S3 returned a 400 Bad Request. This is likely due to malformed input. Try re-running this command with --verbose"
|
17
|
+
exit false
|
15
18
|
rescue Interrupt
|
16
19
|
alert "\nCommand aborted."
|
17
20
|
exit false
|
data/lib/buckler/heroku.rb
CHANGED
@@ -31,8 +31,11 @@ module Buckler
|
|
31
31
|
_, status = Process.wait2(pid)
|
32
32
|
|
33
33
|
if status.exitstatus == 0
|
34
|
-
|
34
|
+
results = command_output.read.to_s.chomp
|
35
|
+
verbose %{`heroku config:get #{variable_name}` returned "#{results}"}
|
36
|
+
return results
|
35
37
|
else
|
38
|
+
verbose %{`heroku config:get #{variable_name}` returned a nonzero exit status}
|
36
39
|
return false
|
37
40
|
end
|
38
41
|
|
data/lib/buckler/version.rb
CHANGED
data/test/buckler_test.rb
CHANGED
@@ -23,7 +23,7 @@ class BucklerTest < Minitest::Test
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Fills a bucket with random, but testable objects
|
26
|
-
|
26
|
+
|
27
27
|
def load_bucket_with_objects(bucket)
|
28
28
|
50.times do
|
29
29
|
bucket.put_object({
|
@@ -64,8 +64,8 @@ class BucklerTest < Minitest::Test
|
|
64
64
|
|
65
65
|
Process.wait2(pid)
|
66
66
|
|
67
|
-
stdout_results = command_stdout_ouput.read
|
68
|
-
stderr_results = command_stderr_ouput.read
|
67
|
+
stdout_results = command_stdout_ouput.read.to_s.chomp
|
68
|
+
stderr_results = command_stderr_ouput.read.to_s.chomp
|
69
69
|
|
70
70
|
command_stdout_ouput.close
|
71
71
|
command_stderr_ouput.close
|