firespring_dev_commands 2.2.6 → 2.2.7

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
  SHA256:
3
- metadata.gz: 56fe86ccb0ca1d53e766dfaf1672413ba8c47090a9e3ec1c507fa8c05137d0e3
4
- data.tar.gz: d429d3695666f2a1e910adf4c3f23568ec538007df64c2c74192eee6d1debdea
3
+ metadata.gz: 5b30db38b7e78fd10c10f0501f923a420d66f7af0e065ecf763a0e6b189402ac
4
+ data.tar.gz: 1ae27d4ead7016e4481f72ef35d21a631acab8b9320c69eb5af569d5596ebf6c
5
5
  SHA512:
6
- metadata.gz: fb92670bc256da6e80cfb26c611dfee20afdf4faf7a17161a4692b1840af550190d33714a63f1bf330d42d0e909cf1a1d98bbf9aa0c71bdf0ab16173c5bb3052
7
- data.tar.gz: 382a5c6197a223bed6d96e5500c0b48f04cff564eaf19fc30f985b882b36813e0130ed1d2ebc4dfcfd73eb9d8f8abbd9d7df4aebee379a62957b4a97c8abb9e0
6
+ metadata.gz: c911067800181483c6d547cb771fb5934d5dff5d313ecf3f7476d4d0906b5c0baba5298dbaffd16fcb421970c71f07b87932780b6d6a67129de2f13fd767a97a
7
+ data.tar.gz: 139f8c61058f931d00ffa0e90190367aaf88fd56ed12bfc47f71ee579f44f4b6a74182fad2b1eca58f51aa952f96ae6db40ccae6d7cbb339daa4651fad5dfb0e
@@ -94,7 +94,7 @@ module Dev
94
94
  # because some projects may be using older versions of the dev_commands library
95
95
  # defaultini.delete('mfa_serial')
96
96
 
97
- session_name_default = defaultini['role_session_name'] || "#{ENV.fetch('USERNAME', nil)}_cli"
97
+ session_name_default = defaultini['role_session_name'] || "#{ENV.fetch('USERNAME', 'no_username_found')}_cli"
98
98
  defaultini['role_session_name'] = Dev::Common.new.ask('Default session name', session_name_default)
99
99
 
100
100
  duration_default = defaultini['session_duration'] || 36_000
@@ -61,7 +61,7 @@ module Dev
61
61
  puts " Logging in to #{account} in #{region} as #{role}".light_yellow
62
62
  puts
63
63
 
64
- code = ENV['AWS_TOKEN_CODE'] || Dev::Common.new.ask("Enter the MFA code for the #{ENV.fetch('USERNAME', '')} user serial #{serial}")
64
+ code = ENV['AWS_TOKEN_CODE'] || Dev::Common.new.ask("Enter the MFA code for the #{ENV.fetch('USERNAME', 'no_username_found')} user serial #{serial}")
65
65
  raise 'MFA is required' unless code.to_s.strip
66
66
 
67
67
  sts = ::Aws::STS::Client.new(profile: 'default', region:)
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.2.6'.freeze
9
+ VERSION = '2.2.7'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firespring_dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport