sshman 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sshman/cli.rb +9 -9
- data/lib/sshman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b126861e05a2fb4a50da69ab3060075a854414c3b963fc8ad89ecff1fbfb77
|
4
|
+
data.tar.gz: fcce6a2de34434038680d4782c2e715004ab64dfe60a672fc531084c40b21982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e18d13632d2743542c862d2052bd43aa3a274e2ad1844fbcd34c208b16c8ae4ef672bdb1dd987798401c42ed738c829c02ab17d46c832aae6195e96d441662
|
7
|
+
data.tar.gz: 737a39f39c65b9d8378a6d8d08c8f7a466a583e0622eb568a8f414463e03ca54df169c808bf338cb5da6b305800f06efb175a121897428d27ed544aafceb3909
|
data/lib/sshman/cli.rb
CHANGED
@@ -44,26 +44,26 @@ module Sshman
|
|
44
44
|
ensure_csv_file
|
45
45
|
|
46
46
|
loop do
|
47
|
-
puts "\n#{YELLOW}Options:#{RESET_COLOR} list, add, edit, delete, connect, generate_key, help, quit"
|
47
|
+
puts "\n#{YELLOW}Options:#{RESET_COLOR} (1)list, (2)add, (3)edit, (4)delete, (5)connect, (6)generate_key, (7)help, (q)quit"
|
48
48
|
print "#{CYAN}Choose an option: #{RESET_COLOR}"
|
49
49
|
option = gets.chomp.downcase.strip
|
50
50
|
|
51
51
|
case option
|
52
|
-
when 'list'
|
52
|
+
when 'list', 'ls', '1'
|
53
53
|
list_servers
|
54
|
-
when 'add'
|
54
|
+
when 'add', '2'
|
55
55
|
add_server
|
56
|
-
when 'edit'
|
56
|
+
when 'edit', '3'
|
57
57
|
edit_server
|
58
|
-
when 'delete'
|
58
|
+
when 'delete', '4'
|
59
59
|
delete_server
|
60
|
-
when 'connect'
|
60
|
+
when 'connect', '5'
|
61
61
|
connect_to_server
|
62
|
-
when 'generate_key'
|
62
|
+
when 'generate_key', '6'
|
63
63
|
KeyManager.generate_key
|
64
|
-
when 'help'
|
64
|
+
when 'help', '7'
|
65
65
|
display_help
|
66
|
-
when 'quit'
|
66
|
+
when 'quit', 'q'
|
67
67
|
puts "#{GREEN}Goodbye!#{RESET_COLOR}"
|
68
68
|
break
|
69
69
|
else
|
data/lib/sshman/version.rb
CHANGED