clearsight 1.2.0.rc2 → 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/lib/clearsight/deploy.rb +1 -0
- data/lib/clearsight/ssh.rb +10 -2
- data/lib/clearsight/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55bd50518e2552ef551c7bd8c7c4cae7282af618
|
4
|
+
data.tar.gz: cf73f57ef68eb2ff36a30cc25bbae258ced96da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 486ea4707b6317b611da8c6a4e76449085f661cf593b19ee0149425133caa9218fed351d255482cc33881919fa882098156551abea31529051e678b98bb6074c
|
7
|
+
data.tar.gz: 811b1d39e0c3309f899358cc48e421aa14dcdf2b6b4af93698457e83da1522d5589fbee65e68446afe0e8823e66f28f0cda920a16dcf1c38558d1bdb5a0f1d62
|
data/Gemfile.lock
CHANGED
data/lib/clearsight/deploy.rb
CHANGED
data/lib/clearsight/ssh.rb
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
module Clearsight
|
2
2
|
class SSH
|
3
|
+
include Methadone::CLILogging
|
4
|
+
include Methadone::SH
|
3
5
|
|
4
6
|
def initialize(host)
|
5
7
|
@host = host
|
6
8
|
end
|
7
9
|
|
8
10
|
def sshify(keyname)
|
9
|
-
|
10
|
-
|
11
|
+
commands = [
|
12
|
+
"mkdir -p ~/.ssh",
|
13
|
+
"touch ~/.ssh/authorized_keys",
|
14
|
+
"chmod 744 ~/.ssh",
|
15
|
+
"chmod 644 ~/.ssh/authorized_keys",
|
16
|
+
"cat >> ~/.ssh/authorized_keys",
|
17
|
+
]
|
18
|
+
sh "cat ~/.ssh/#{keyname} | ssh #{@host} '#{commands.join("; ")}'"
|
11
19
|
end
|
12
20
|
|
13
21
|
end
|
data/lib/clearsight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearsight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamon Holmgren
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
|
-
- - '
|
153
|
+
- - '>='
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
155
|
+
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 2.0.14
|