switchcreds 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/switchcreds/version.rb +1 -1
- data/lib/switchcreds.rb +2 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b33b430c052379c40477d608b217432156bd55a
|
4
|
+
data.tar.gz: f6b7dd4e5969065cf2316558a86b8b786d365674
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bbebf7038147f8fe7d5a74fbfc7632202ead9e36e8853a3815daa5548b2a1546f9d8be5b4293add1c25a419a145f414819aa79a1ec4d847a8df92648cbf4724
|
7
|
+
data.tar.gz: 03a7f22154bff84838807c6f023938817980619708faabee108ce6913f45f775767f5fd56d8277d2704d12e5ed4937abff6ec60b2c8c6e53faa2bffbcde2f8ea
|
data/lib/switchcreds/version.rb
CHANGED
data/lib/switchcreds.rb
CHANGED
@@ -4,12 +4,10 @@ require "os"
|
|
4
4
|
module SwitchCreds
|
5
5
|
def self.get_creds
|
6
6
|
# detect the OS and user to find the .aws directory
|
7
|
-
if OS.mac?
|
7
|
+
if OS.mac? || OS.linux?
|
8
8
|
$user = Dir.home[7, Dir.home.length].to_s
|
9
9
|
elsif OS.windows?
|
10
10
|
$user = Dir.home[9, Dir.home.length].to_s
|
11
|
-
# when OS.linux?
|
12
|
-
# TODO: build out Linux implentation (other OSs too?)
|
13
11
|
else
|
14
12
|
puts "ERROR:".colorize(:red) + " Neither WINDOWS nor MAC OS detected.\n Unable to proceed."
|
15
13
|
end
|
@@ -25,19 +23,7 @@ module SwitchCreds
|
|
25
23
|
|
26
24
|
def self.switch_creds
|
27
25
|
creds = get_creds()
|
28
|
-
puts "
|
29
|
-
==========================================================================================================================================================
|
30
|
-
== === ==== ==== == == ==== === ==== ======= ==== ========= ==== ==== == ==== == ==== === ==== === ==
|
31
|
-
= ==== == ==== ==== === ====== ====== === == ==== ========== ====== == ======== ==== ==== == ==== === ==== === == ==== == ==== =
|
32
|
-
= ==== == ==== ==== === ====== ===== ======== ==== ========== ===== ==== ======= ==== ==== == ==== === === ======== ==== == ==== =
|
33
|
-
== ======= ==== ==== === ====== ===== ======== ==== ========== ===== ==== ======= ==== ==== == ==== === === ======== ==== ======= ==
|
34
|
-
==== ===== == == ==== ====== ===== ======== ========== ===== ==== ======= == == === === === ======== ====== ===
|
35
|
-
====== ==== == == ==== ====== ===== ======== ==== ========== ===== ==== ======== == == === ==== === === ======== ==== ===== ====
|
36
|
-
= ==== === == == ==== ====== ===== ======== ==== ========== ===== ==== ======== == == === ==== === === ======== ==== ===========
|
37
|
-
= ==== ==== == ===== ====== ====== === == ==== ========== ====== == ========== == ==== ==== === ==== === == ==== ===== ====
|
38
|
-
== ====== ==== ===== ===== ======= === ==== ========== ======= ============ ==== ===== ==== == ==== === ==== ===== ====
|
39
|
-
==========================================================================================================================================================
|
40
|
-
\n".colorize(:blue)
|
26
|
+
puts "CHOOSE FROM BELOW:\n".colorize(:green)
|
41
27
|
|
42
28
|
i = 0
|
43
29
|
creds.each do |o|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchcreds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Laflamme
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,5 +91,5 @@ rubygems_version: 2.6.14
|
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Allows switching between Amazon Web Services (AWS) accounts via command line.
|
94
|
-
Mac
|
94
|
+
Mac, Windows, and Linux supported.
|
95
95
|
test_files: []
|