sumodev 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev/commands/push.rb +8 -2
- data/lib/sumodev/version.rb +1 -1
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8b3fe32436cf8049b4d4f1ed473badc82a1496f
|
4
|
+
data.tar.gz: ecb36f2036fa1359744dafec5f18e6853ff9a0f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2b6ff46af7e78d09661c709f4eb03375f8c3e23c4fd4c1d37535b535debcdcc4a42116045a8145cbfe1a76067ed36c50a09ec2378aae888f488ada2675b823
|
7
|
+
data.tar.gz: e3201562e5ded861b3cf94554f3614dd6ff87e66a33f7e5c4946147c0f81a6fd45ce476c59f1965374d458347edf08f5a517468c79547712f18841e2bfd32170
|
@@ -26,7 +26,10 @@ class Sumodev::Commands::Push < Thor::Group
|
|
26
26
|
connect do |ssh|
|
27
27
|
say "Pushing SSH keys to #{login}@#{host}"
|
28
28
|
ssh.exec! 'mkdir -p ~/.ssh; touch ~/.ssh/authorized_keys'
|
29
|
-
|
29
|
+
say "Checking authorized_keys file"
|
30
|
+
keys_file = ssh.scp.download!('.ssh/authorized_keys', nil, :verbose => true) do |ch, name, sent, total|
|
31
|
+
say "#{name}: #{sent}/#{total}"
|
32
|
+
end
|
30
33
|
|
31
34
|
authorized_keys = AuthorizedKeys.new(keys_file)
|
32
35
|
|
@@ -35,7 +38,10 @@ class Sumodev::Commands::Push < Thor::Group
|
|
35
38
|
authorized_keys.add user
|
36
39
|
end
|
37
40
|
|
38
|
-
|
41
|
+
say 'Uploading updated authorized_keys file'
|
42
|
+
ssh.scp.upload!(authorized_keys.to_io, '.ssh/authorized_keys', :verbose => true) do |ch, name, sent, total|
|
43
|
+
say "#{name}: #{sent}/#{total}"
|
44
|
+
end
|
39
45
|
end
|
40
46
|
rescue Net::SCP::Error
|
41
47
|
$stderr.puts
|
data/lib/sumodev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan De Poorter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,44 +28,44 @@ dependencies:
|
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.19'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '0.19'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: net-ssh
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: net-scp
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.2'
|
69
69
|
description: A command line tool to access all things you want
|
70
70
|
email: jan@sumocoders.be
|
71
71
|
executables:
|
@@ -92,8 +92,9 @@ files:
|
|
92
92
|
- lib/sumodev/generators/general/templates/Capfile
|
93
93
|
- lib/sumodev/sumofile.rb
|
94
94
|
- lib/sumodev/version.rb
|
95
|
-
homepage:
|
96
|
-
licenses:
|
95
|
+
homepage: https://rubygems.org/gems/sumodev
|
96
|
+
licenses:
|
97
|
+
- MIT
|
97
98
|
metadata: {}
|
98
99
|
post_install_message:
|
99
100
|
rdoc_options: []
|