reyes 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/reyes +3 -2
- data/lib/reyes/version.rb +1 -1
- 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: 87d2b4742ca4301e834e9a4d6c752f77e927641d
|
4
|
+
data.tar.gz: 5a1eb6724469ac979c13630fda028b0640b6d215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d88464ac17c3468d8eb575edde219b9f0e4b649ef74b3a7528bc30e68289c408a87bbb12b01e6e151dfde2aea7f1983f46aad19a2d1f94b9d8b020605ec8ae
|
7
|
+
data.tar.gz: 44dd2a640696262099fffb5f9a3d209d1693b939ac611ad8246a1410a6744bee725fe5e8c18aa40b69af39007d4b1db93d69dc101beef505f9a93721ff5a2eb1
|
data/bin/reyes
CHANGED
@@ -57,14 +57,15 @@ def command_upload(options)
|
|
57
57
|
aws = Reyes::AwsManager.new(options[:config])
|
58
58
|
wrapper = Reyes::PgpWrapper.new(options[:config])
|
59
59
|
|
60
|
-
|
60
|
+
data_obj = aws.generate_fake_data
|
61
|
+
data = JSON.pretty_generate(data_obj)
|
61
62
|
|
62
63
|
armoured_data = wrapper.clearsign(data)
|
63
64
|
|
64
65
|
s3 = Reyes::S3Loader.new(aws, options[:config])
|
65
66
|
|
66
67
|
if options[:archive]
|
67
|
-
timestamp =
|
68
|
+
timestamp = data_obj.fetch('metadata').fetch('generated_stamp')
|
68
69
|
archive_name = "#{Socket.gethostname}/#{timestamp}"
|
69
70
|
s3.archive_rules(armoured_data, archive_name)
|
70
71
|
end
|
data/lib/reyes/version.rb
CHANGED