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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8237302dde9e4c21466de258b3552b667042ed79
4
- data.tar.gz: 11da32f5ed22b112d61e0b61e9fe5cac8e0d3944
3
+ metadata.gz: 3b33b430c052379c40477d608b217432156bd55a
4
+ data.tar.gz: f6b7dd4e5969065cf2316558a86b8b786d365674
5
5
  SHA512:
6
- metadata.gz: 991016c323b03a36bd71a7cee16f4b6429555f6d688443c7eed2bc8de763bc39ce11fedebb6e539d78d7dfbdf1229058893795770d938e8c1b1d372e6600829a
7
- data.tar.gz: 913a979a3a801bf6851957cd263bc63c328ca932e31be3cfb96588dd56f4bed00699925d8ad615c34b36ff1103221f886091c2131029108e10e57491ea87cc6d
6
+ metadata.gz: 7bbebf7038147f8fe7d5a74fbfc7632202ead9e36e8853a3815daa5548b2a1546f9d8be5b4293add1c25a419a145f414819aa79a1ec4d847a8df92648cbf4724
7
+ data.tar.gz: 03a7f22154bff84838807c6f023938817980619708faabee108ce6913f45f775767f5fd56d8277d2704d12e5ed4937abff6ec60b2c8c6e53faa2bffbcde2f8ea
@@ -1,3 +1,3 @@
1
1
  module SwitchCreds
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-12 00:00:00.000000000 Z
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 only at this time.
94
+ Mac, Windows, and Linux supported.
95
95
  test_files: []