hekate 0.1.0.pre2 → 0.1.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/hekate +3 -5
- data/lib/hekate/engine.rb +3 -3
- data/lib/hekate/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: e35eee310d616606abcb4300664fcbf3536046b9
|
4
|
+
data.tar.gz: 66905d80f096f8666b32ac0e91f414b125dbfe45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e49583bcd97b273ba96bdeb2a07e851ff1d763729408291d8cb2a244602ae475c5db85992499fe436bbfc0e1208c0c3257330d6886a23913e04e60e3ab924c9
|
7
|
+
data.tar.gz: 73e861415e560f8b00312fd68eec24680ed4a54342f9165743c9acb9ef196f3e3dad38e4c2a610e41ce2601e37595e1f1d79cfa887203d77ab04d63c5eb80eb8
|
data/Gemfile.lock
CHANGED
data/bin/hekate
CHANGED
@@ -55,15 +55,13 @@ command :add do |c|
|
|
55
55
|
options.default \
|
56
56
|
environment: :development,
|
57
57
|
region: Hekate::Engine.get_region
|
58
|
-
|
59
|
-
puts 0
|
58
|
+
|
60
59
|
next unless is_valid.call(options)
|
61
60
|
unless options.key && options.value
|
62
61
|
say("<%= color('--key and --value are required', RED) %>!")
|
63
62
|
next
|
64
63
|
end
|
65
|
-
|
66
|
-
puts 1
|
64
|
+
|
67
65
|
engine = Hekate::Engine.new(options.region, options.environment, options.application)
|
68
66
|
engine.add_parameter options.key, options.value
|
69
67
|
end
|
@@ -107,7 +105,7 @@ command :get do |c|
|
|
107
105
|
end
|
108
106
|
|
109
107
|
engine = Hekate::Engine.new(options.region, options.environment, options.application)
|
110
|
-
|
108
|
+
puts engine.get_parameter(options.key)
|
111
109
|
end
|
112
110
|
end
|
113
111
|
|
data/lib/hekate/engine.rb
CHANGED
@@ -25,7 +25,7 @@ module Hekate
|
|
25
25
|
parameters = parameters.map(&:name)
|
26
26
|
|
27
27
|
parameters.each_slice(10) do |slice|
|
28
|
-
result = ssm.
|
28
|
+
result = ssm.get_parameters(
|
29
29
|
names: slice,
|
30
30
|
with_decryption: true
|
31
31
|
).parameters
|
@@ -58,7 +58,7 @@ module Hekate
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def add_parameter(key, value)
|
61
|
-
|
61
|
+
ssm.put_parameter(name: "#{@application}.#{@environment}.#{key}",
|
62
62
|
value: value,
|
63
63
|
type: 'SecureString',
|
64
64
|
key_id: kms_key.key_id,
|
@@ -86,7 +86,7 @@ module Hekate
|
|
86
86
|
progress = Commander::UI::ProgressBar.new(parameters.length)
|
87
87
|
open(env_file, 'w') do |file|
|
88
88
|
parameters.each_slice(10) do |slice|
|
89
|
-
result = ssm.
|
89
|
+
result = ssm.get_parameters(
|
90
90
|
names: slice,
|
91
91
|
with_decryption: true
|
92
92
|
).parameters
|
data/lib/hekate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hekate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jasonrisch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|