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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws_mfa.rb +2 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5776f52ef1b781f9aeea4996019358182f49502f27ed0ad943e0a1a55ce8e2d6
4
- data.tar.gz: b1e19ee73a61ace3c884f984e0967a539ae2302efb7503dff7aeb31f810a75fd
3
+ metadata.gz: e1b875daaf81655879af190dec1261d64fc18a7a9ef9f0d8dd5ee72bc9dae713
4
+ data.tar.gz: f7433319c75721dc343fe39f3315d89120601b3358a7ac268d91c8420f478967
5
5
  SHA512:
6
- metadata.gz: dcb52467e7e567861ba18101affbcad5c508dba8f9e0acbe7db1bd921b26fc65b94fe95a250e3979ffacd811492e0c1040626cadaeb4966f69c892b79dc89ae8
7
- data.tar.gz: b01e529138a2ff94dbeca9abd6dc3111af935819c8fe781562733bdf2559eca0795e060f8648e58c4196a1c7a0367cceec635c2ab67978cbe5d1b7dc5b41cc68
6
+ metadata.gz: 32bd797cf75361c5c7b9c0f866e46706e9441b7e8e4258af7c92f2d1d1cf38750e6247cebd4171c45a6c467dd501bcf366dd05cda120e99cec5fabcaa0d5b48d
7
+ data.tar.gz: cfdbd1c9f00dcae1aebc94d16519112a4bd304428564b38346319aff54b256bb5b23e7b8252d8810e0576862e4c7653d28ebdbb76dbcd01ae6b34e34295d5b0b
@@ -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: 1.1.0
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-22 00:00:00.000000000 Z
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)