smps 0.1.2 → 0.1.3

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: 6bc52c1bd13cda564e65848de1e798c50f46ce1f
4
- data.tar.gz: fc53526c0a5f8cbd691a4ca9d24a6cbb2b9e874e
3
+ metadata.gz: d0e0b58ea22b54b674c067affff5cca058452e4e
4
+ data.tar.gz: 6bbb089f692f478ae990f1a929e9ffb1383d3f63
5
5
  SHA512:
6
- metadata.gz: 375d600027614a23f4aee28235107e3472e867ca610fe6e34cf144653f8edbffd9a16c644598a8050783031f41faf77b47e9c5f70559150dcc39b8d8b13edaf9
7
- data.tar.gz: db7611c0e68bc2b29d25e98fe9642f9c4a9256e331e5475e3e384c25f31d0f05a78a357bc630d5a01b98e64aa52ed59ae0867775e31ef66e68de6444b4250319
6
+ metadata.gz: 9613bb26f166243ac781a042d5c0c11adf9f89ff160d93bf92ca40f0ff5a3700837da8846a8b9cb56f27d41bcd4a25b2644d5c4ab64d1e4eb06ff113341397a2
7
+ data.tar.gz: 1effe41ec86f4dc2a1f203e46c55c12d8f19ac07e358c24a0e1cf2887a2fa85a0e2f2aa5fbb1f01c6fd4094ef0fb31ba4c227f63dd3bb283e44f87e76f7f1f67
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'awssession'
4
3
  require 'smps'
5
4
 
6
5
  smps = SmPs.new
@@ -3,13 +3,17 @@ require 'smps/parameter'
3
3
  require 'aws-sdk-ssm'
4
4
 
5
5
  class SmPs
6
- def initialize(options)
6
+ def initialize(options = {})
7
7
  @credentials = options[:credentials]
8
8
  @parameters = {}
9
9
  end
10
10
 
11
11
  def ssm_client
12
- @ssm || @ssm = Aws::SSM::Client.new(credentials: @credentials)
12
+ @ssm || @ssm = if @credentials.nil?
13
+ Aws::SSM::Client.new
14
+ else
15
+ Aws::SSM::Client.new(credentials: @credentials)
16
+ end
13
17
  end
14
18
 
15
19
  def parameter(name)
@@ -1,3 +1,3 @@
1
1
  class SmPs
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
@@ -34,8 +34,8 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency 'rake', '~> 10.0'
35
35
  spec.add_development_dependency 'rspec', '~> 3.0'
36
36
  spec.add_development_dependency 'aws_config'
37
+ spec.add_development_dependency 'awssession'
37
38
 
38
39
  spec.add_runtime_dependency 'aws-sdk-core'
39
40
  spec.add_runtime_dependency 'aws-sdk-ssm'
40
- # spec.add_runtime_dependency 'awssession'
41
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan - Zipkid - Goethals
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: awssession
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: aws-sdk-core
71
85
  requirement: !ruby/object:Gem::Requirement