locum 0.0.2 → 0.0.3
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/locum/cli.rb +5 -5
- data/lib/locum/ssh.rb +1 -3
- data/lib/locum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bba75c2322409d1b71b6be6006045474b6b1e07a
|
4
|
+
data.tar.gz: 0c1d4596f12df4021a33f9459abb28222de42f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428ee12f3d3f632f589776a1bf5365c51ed9a665d6b7acc2bde016886bada0ac2eed04d1678700689f1e18d05a3d94c360f5cd905ec5ae880bfe48b29e55fed2
|
7
|
+
data.tar.gz: e5795020e532bf2542bb4ec853cb4474b94bf84231f4fc9f2eb3ea397788f3d233c24f7ea538cd7f75c0802bfae6f9f45e5ada42827cf55202f33c1593241124
|
data/lib/locum/cli.rb
CHANGED
@@ -4,7 +4,7 @@ require 'highline/import'
|
|
4
4
|
require 'locum'
|
5
5
|
|
6
6
|
module Locum
|
7
|
-
class
|
7
|
+
class SshKey < Thor
|
8
8
|
desc 'add', 'Настраивает беспарольную авторизацию по ключу'
|
9
9
|
option :key
|
10
10
|
|
@@ -16,8 +16,8 @@ module Locum
|
|
16
16
|
end
|
17
17
|
cn.say "Используется ключ #{key_file}"
|
18
18
|
|
19
|
-
ssh_auth = Locum::Ssh.new
|
20
|
-
ssh_auth.add_ssh_key
|
19
|
+
ssh_auth = Locum::Ssh.new
|
20
|
+
ssh_auth.add_ssh_key(key_file)
|
21
21
|
|
22
22
|
s_out "Теперь вы можете авторизоваться по SSH без пароля"
|
23
23
|
end
|
@@ -85,8 +85,8 @@ EOFBLOCK
|
|
85
85
|
projects.projects.each { |p| say(" * #{p['name']} (##{p['id']} #{p['type']})") }
|
86
86
|
end
|
87
87
|
|
88
|
-
desc '
|
89
|
-
subcommand '
|
88
|
+
desc 'ssh_key', 'Работа с ключами'
|
89
|
+
subcommand 'ssh_key', SshKey
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|
data/lib/locum/ssh.rb
CHANGED
data/lib/locum/version.rb
CHANGED