mydrive-aws-mfa 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_mfa.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b875daaf81655879af190dec1261d64fc18a7a9ef9f0d8dd5ee72bc9dae713
|
4
|
+
data.tar.gz: f7433319c75721dc343fe39f3315d89120601b3358a7ac268d91c8420f478967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32bd797cf75361c5c7b9c0f866e46706e9441b7e8e4258af7c92f2d1d1cf38750e6247cebd4171c45a6c467dd501bcf366dd05cda120e99cec5fabcaa0d5b48d
|
7
|
+
data.tar.gz: cfdbd1c9f00dcae1aebc94d16519112a4bd304428564b38346319aff54b256bb5b23e7b8252d8810e0576862e4c7653d28ebdbb76dbcd01ae6b34e34295d5b0b
|
data/lib/aws_mfa.rb
CHANGED
@@ -17,6 +17,8 @@ class AwsMfa
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def execute(execution_output = :set_env, profile = nil)
|
20
|
+
return if ENV["AWS_SESSION_TOKEN"]
|
21
|
+
|
20
22
|
aws_profile = profile || ENV['AWS_PROFILE'] || "default"
|
21
23
|
profile_config = load_profile_config(aws_profile)
|
22
24
|
credentials = load_credentials(profile_config)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mydrive-aws-mfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MyDrive Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inifile
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
93
93
|
- aws-cli
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.7.6
|
95
|
+
rubygems_version: 2.7.6.2
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Run AWS commands with MFA (MyDrive fork)
|