loginx 1.1.0 → 1.2.0

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: 81b77feec06b971045a1a001e0d19287ce8e0667
4
- data.tar.gz: 07b8d246fa03b50227ae8c29d9ca93a6bd848561
3
+ metadata.gz: fb935ce548b58c79389fe6ae5930ae3ef42bc46e
4
+ data.tar.gz: caf651475357759b033b0aef7e2c03261c726c7d
5
5
  SHA512:
6
- metadata.gz: 646febb4dd8c6c152cffd546733565296aad9b0e925378a2d69be98a1515ba942258e60bc61e9013d2f6d5db9eab89ee5a272443b546b294502f67c2a888e4f6
7
- data.tar.gz: 8eeb97877cac84e3fbf0244b88338e3b2d46b4b1e478d0253c81d25a8dac73f69f0026b0dbd86d884dfe6e7d6b5d7d6d8412504d50e512f7b16b33ca4f2f4ec9
6
+ metadata.gz: 74a590f92f84c3699ad8b1480146e0b247fb694b1f389762d536b673fea81df68ac5e9564342f29b66e1ac001b7c2c92aef9d33ff6cb25ed11bc25ab7b6599ab
7
+ data.tar.gz: 6bc1df29a83643dcb3affa3449acb2bc3b82cd86d6e67a85a97efd2f67840fcc3751206acc30b2c517f155b9cbcd3488c6f477ff088bc7476b1748d336b25fd2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- loginx (1.1.0)
4
+ loginx (1.2.0)
5
5
  methadone (>= 1.9.3)
6
6
  ruby_expect
7
7
 
@@ -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] add a record default project is default
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"
@@ -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 "send ssh key successfully, now you can try again, or use |ssh #{user}@#{ip}|"
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
 
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Loginx
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{quick login}
13
13
  spec.description = %q{quick login}
14
14
  spec.homepage = "https://github.com/terryshi96/loginx"
15
- spec.license = ""
15
+ spec.license = "MIT"
16
16
 
17
17
 
18
18
 
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.1.0
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-29 00:00:00.000000000 Z
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: []