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 +4 -4
- data/bin/smps-use-ec2.rb +0 -1
- data/lib/smps.rb +6 -2
- data/lib/smps/version.rb +1 -1
- data/smps.gemspec +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0e0b58ea22b54b674c067affff5cca058452e4e
|
4
|
+
data.tar.gz: 6bbb089f692f478ae990f1a929e9ffb1383d3f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9613bb26f166243ac781a042d5c0c11adf9f89ff160d93bf92ca40f0ff5a3700837da8846a8b9cb56f27d41bcd4a25b2644d5c4ab64d1e4eb06ff113341397a2
|
7
|
+
data.tar.gz: 1effe41ec86f4dc2a1f203e46c55c12d8f19ac07e358c24a0e1cf2887a2fa85a0e2f2aa5fbb1f01c6fd4094ef0fb31ba4c227f63dd3bb283e44f87e76f7f1f67
|
data/bin/smps-use-ec2.rb
CHANGED
data/lib/smps.rb
CHANGED
@@ -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 =
|
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)
|
data/lib/smps/version.rb
CHANGED
data/smps.gemspec
CHANGED
@@ -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.
|
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
|