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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58c21dd8015a2aefbf6f460ff6bc600e7432a272
4
- data.tar.gz: 3f51922fdbb0a536052f00c1d29234a20099565e
3
+ metadata.gz: e35eee310d616606abcb4300664fcbf3536046b9
4
+ data.tar.gz: 66905d80f096f8666b32ac0e91f414b125dbfe45
5
5
  SHA512:
6
- metadata.gz: 3ef8ef172ccf94ba6b5fbfabc36ea770cfe5df502f307833fcdb780fb9fe50b28ad31a9e06158eef0e7d128e435ef2be4893189c48ebf46817ae6e5948aa3fb9
7
- data.tar.gz: ff9d412530a6a08d26ab9c5dbcf64ced7661d69037aac55e273cc54eab5472ecce1c55fd59dbea9851f33715298f4dbedcce2c8ce26e5b531dd5d413795f1dbb
6
+ metadata.gz: 7e49583bcd97b273ba96bdeb2a07e851ff1d763729408291d8cb2a244602ae475c5db85992499fe436bbfc0e1208c0c3257330d6886a23913e04e60e3ab924c9
7
+ data.tar.gz: 73e861415e560f8b00312fd68eec24680ed4a54342f9165743c9acb9ef196f3e3dad38e4c2a610e41ce2601e37595e1f1d79cfa887203d77ab04d63c5eb80eb8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hekate (0.1.0.pre)
4
+ hekate (0.1.0.pre2)
5
5
  aws-sdk (~> 2.9, >= 2.9.0)
6
6
  commander (~> 4.4, >= 4.4.0)
7
7
  ec2-metadata (~> 0.2, >= 0.2.0)
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
- say engine.get_parameter(options.key).to_json
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.get_app_env_parameters(
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
- response = ssm.put_parameter(name: "#{@application}.#{@environment}.#{key}",
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.get_app_env_parameters(
89
+ result = ssm.get_parameters(
90
90
  names: slice,
91
91
  with_decryption: true
92
92
  ).parameters
@@ -1,3 +1,3 @@
1
1
  module Hekate
2
- VERSION = '0.1.0.pre2'.freeze
2
+ VERSION = '0.1.0.pre3'.freeze
3
3
  end
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.pre2
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-14 00:00:00.000000000 Z
11
+ date: 2017-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk