loginx 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.txt +21 -0
- data/README.md +1 -1
- data/bin/loginx +1 -1
- data/lib/core.rb +5 -1
- data/lib/loginx/version.rb +1 -1
- data/loginx.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb935ce548b58c79389fe6ae5930ae3ef42bc46e
|
4
|
+
data.tar.gz: caf651475357759b033b0aef7e2c03261c726c7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74a590f92f84c3699ad8b1480146e0b247fb694b1f389762d536b673fea81df68ac5e9564342f29b66e1ac001b7c2c92aef9d33ff6cb25ed11bc25ab7b6599ab
|
7
|
+
data.tar.gz: 6bc1df29a83643dcb3affa3449acb2bc3b82cd86d6e67a85a97efd2f67840fcc3751206acc30b2c517f155b9cbcd3488c6f477ff088bc7476b1748d336b25fd2
|
data/Gemfile.lock
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 terryshi96
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ recommend configuring loginx alias---lx
|
|
32
32
|
-L list all projects
|
33
33
|
-l [project_name] list all hosts in the project
|
34
34
|
-u [username] define user default root
|
35
|
-
-a [project_name][server_alias][ip]
|
35
|
+
-a [project_name][server_alias][ip][password] add a record default project is default
|
36
36
|
-d [project_name][server_alias] deleta a record
|
37
37
|
-p [port] port default 22
|
38
38
|
-h/no argv help
|
data/bin/loginx
CHANGED
@@ -80,7 +80,7 @@ class App
|
|
80
80
|
end
|
81
81
|
|
82
82
|
#option -a in add.rb
|
83
|
-
on("-a project server_alias ip password","add a new record") do |project_name|
|
83
|
+
on("-a project server_alias ip 'password'","add a new record") do |project_name|
|
84
84
|
options[:a] = project_name
|
85
85
|
if ARGV.count != 3
|
86
86
|
puts "you must offer server_alias ip and password"
|
data/lib/core.rb
CHANGED
@@ -41,6 +41,10 @@ class Core_p
|
|
41
41
|
puts "this user is not allowed"
|
42
42
|
end
|
43
43
|
|
44
|
+
expect /Connection refused/ do
|
45
|
+
puts "please check your port setting or password"
|
46
|
+
end
|
47
|
+
|
44
48
|
expect /continue connecting/ do
|
45
49
|
send "yes"
|
46
50
|
end
|
@@ -71,7 +75,7 @@ class Core_p
|
|
71
75
|
expect /assword/ do
|
72
76
|
send "#{password}"
|
73
77
|
sleep 3
|
74
|
-
puts "
|
78
|
+
puts "now you can try again, or use |ssh #{user}@#{ip}| if failed please check your password"
|
75
79
|
exit 0
|
76
80
|
end
|
77
81
|
|
data/lib/loginx/version.rb
CHANGED
data/loginx.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- terryshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- ".travis.yml"
|
81
81
|
- Gemfile
|
82
82
|
- Gemfile.lock
|
83
|
+
- LICENSE.txt
|
83
84
|
- README.md
|
84
85
|
- Rakefile
|
85
86
|
- bin/loginx
|
@@ -94,7 +95,7 @@ files:
|
|
94
95
|
- loginx.gemspec
|
95
96
|
homepage: https://github.com/terryshi96/loginx
|
96
97
|
licenses:
|
97
|
-
-
|
98
|
+
- MIT
|
98
99
|
metadata: {}
|
99
100
|
post_install_message:
|
100
101
|
rdoc_options: []
|