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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a64e9fd746a8f6b5722548589048845597dc98df
4
- data.tar.gz: cdbd88c334d38e4a07ca9a909ebb8b3329d0c1a7
3
+ metadata.gz: 55bd50518e2552ef551c7bd8c7c4cae7282af618
4
+ data.tar.gz: cf73f57ef68eb2ff36a30cc25bbae258ced96da4
5
5
  SHA512:
6
- metadata.gz: 828da4790d34f21ca1fcf8bf3c1ad7c1880809066b15ee86cef0ea6a23e4d80c6036e0696019c1e43ece0e9ffb8ac32409d3e5e4cb20cd5eb337a8ca0b457d66
7
- data.tar.gz: 1bae486397f4e4cc6894d2d90b4e6ffe80db7348ef0b0db9484cd22654d6e124934d40a067f77b9b693dcc80fe227d60a8711b39f59624d7a4420eb0bb7a66d8
6
+ metadata.gz: 486ea4707b6317b611da8c6a4e76449085f661cf593b19ee0149425133caa9218fed351d255482cc33881919fa882098156551abea31529051e678b98bb6074c
7
+ data.tar.gz: 811b1d39e0c3309f899358cc48e421aa14dcdf2b6b4af93698457e83da1522d5589fbee65e68446afe0e8823e66f28f0cda920a16dcf1c38558d1bdb5a0f1d62
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearsight (1.0.0)
4
+ clearsight (1.2.0.rc3)
5
5
  highline (~> 1.6.20)
6
6
  methadone (~> 1.3.0)
7
7
 
@@ -1,5 +1,6 @@
1
1
  module Clearsight
2
2
  class Deploy
3
+ include Methadone::CLILogging
3
4
  include Methadone::SH
4
5
 
5
6
  def self.deploy(args)
@@ -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
- # sh "cat ~/.ssh/#{keyname} | ssh #{host} 'cat >> ~/.ssh/authorized_keys'"
10
- sh "ssh-copy-id -i ~/.ssh/#{keyname} #{@host}"
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
@@ -1,3 +1,3 @@
1
1
  module Clearsight
2
- VERSION = "1.2.0.rc2"
2
+ VERSION = "1.2.0"
3
3
  end
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.rc2
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: 1.3.1
155
+ version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 2.0.14