cloudformation-tool 1.5.9 → 1.5.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_formation_tool/errors.rb +2 -0
- data/lib/cloud_formation_tool/version.rb +1 -1
- data/lib/cloud_formation_tool.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb86554b52393bc384564501876f49e53f597abf7b934b8bc1a4e7227d34cb9b
|
4
|
+
data.tar.gz: 162aa55a29712c89f9981e47aee38fdf75f7ff8f197edc988322badf8bcd4331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c728d7363249c04d7da2158260bcc5b3c7a8db4986b1a9bed62d2f72ca44dd266b91a5cbb82b03ba93310dce13ed42a19e2d75c78cb04066e30217c04d56d647
|
7
|
+
data.tar.gz: c3eb121a886a97f3e56f20fa658d88131f293de0a0ca44295b3b2bae9ab935d92e367798b28a3006af04d7bc42dd5c7bd26e9a4516a2c291b3021937f845a867
|
data/lib/cloud_formation_tool.rb
CHANGED
@@ -89,7 +89,6 @@ module CloudFormationTool
|
|
89
89
|
end
|
90
90
|
|
91
91
|
def aws_config
|
92
|
-
p region
|
93
92
|
{
|
94
93
|
# credentials: awscreds,
|
95
94
|
profile: profile,
|
@@ -106,7 +105,11 @@ module CloudFormationTool
|
|
106
105
|
def awss3(s3reg = nil)
|
107
106
|
require 'aws-sdk-s3'
|
108
107
|
s3reg ||= region
|
109
|
-
|
108
|
+
begin
|
109
|
+
($__aws_s3 ||= {})[region] ||= Aws::S3::Client.new aws_config.merge(region: s3reg)
|
110
|
+
rescue Aws::Errors::InvalidSSOToken => e
|
111
|
+
raise CloudFormationTool::Errors::AuthError, "SSO login failed: #{e.message}"
|
112
|
+
end
|
110
113
|
end
|
111
114
|
|
112
115
|
def awscf
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudformation-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oded Arbel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|