clearsight 0.0.7 → 0.0.8

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: b0eee2073e7356dd44ec161616a5bacbdabad306
4
- data.tar.gz: 56f4e02578623e4a3cbc0f9b118279d1efa45fb9
3
+ metadata.gz: 353b9b635bcf8abf721223541bca9df2254b8450
4
+ data.tar.gz: a4a797cd4363280a229ee6fb94a0c9550e6e94de
5
5
  SHA512:
6
- metadata.gz: b317414dff23a282e9aa24acb70dfcf6e1b9cfa737350629b535d6c2ea1a5553da70356560d9c34b4ba228b1fa5bbf9f0fe66f91dc72eb15d8a720c5f64e51ba
7
- data.tar.gz: 09cbb774acfe593a71e1c4d828ba3bb0447b5aaecb3f9c7a42ec6d2b64bd6f3e24d3676b59c0bed2abdcf55d3640e7bf55687e5e8475e4b85472a2ea27641d5f
6
+ metadata.gz: fc5afb57802194d92a96e31d2642c459d563ecda685287f8019465b7edc84e3e94ee85b86263aa1de0f2c79db774459381a88f218299d86f4385e2b1201b7f19
7
+ data.tar.gz: eda48423d5399c3b6f841b12cc4448f4aa788453dd1101bf095b1671ce0ceb50cbdaaecc62fa312d107abce01c244ae4ac0a6817a01e85ea3f92a7a3987b8fcb
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearsight (0.0.5)
4
+ clearsight (0.0.8)
5
+ highline (~> 1.6.20)
5
6
  methadone (~> 1.3.0)
6
7
 
7
8
  GEM
@@ -24,6 +25,7 @@ GEM
24
25
  ffi (1.9.0)
25
26
  gherkin (2.12.2)
26
27
  multi_json (~> 1.3)
28
+ highline (1.6.20)
27
29
  json (1.8.1)
28
30
  methadone (1.3.0)
29
31
  bundler
data/bin/cs CHANGED
@@ -17,11 +17,14 @@ class App
17
17
  when :update then update
18
18
  when :help then show_help
19
19
  when :killrails then killrails(args.first || 3000)
20
+ when :sshify then sshify(args.first, options[:key] || "id_rsa.pub")
20
21
  else
21
22
  puts "Invalid command."
22
23
  show_help
23
24
  end
24
25
  end
26
+ on("--key VALUE")
27
+ on("-k VALUE", "--key")
25
28
 
26
29
  def self.show_help
27
30
  puts "USAGE:"
@@ -29,6 +32,8 @@ class App
29
32
  puts " Deploys or sets up deployment to a remote server. Replaces gitdeploysetup."
30
33
  puts " killrails <port>"
31
34
  puts " Kills a rails server running on the given port. Only works on Linux (so far)."
35
+ puts " sshify host <-k keyname.pub>"
36
+ puts " Installs your SSH public key (id_rsa.pub unless you pass a different one) to a remote server (user@host.com)."
32
37
  puts " update"
33
38
  puts " Updates the gem. Same as `gem update clearsight`."
34
39
  end
@@ -48,6 +53,12 @@ class App
48
53
  end
49
54
  puts "dead."
50
55
  end
56
+
57
+ def self.sshify(host, keyname)
58
+ puts "Installing SSH key to remote server."
59
+ sh "cat ~/.ssh/#{keyname} | ssh #{host} 'cat >> ~/.ssh/authorized_keys'"
60
+ puts "Installed."
61
+ end
51
62
 
52
63
  def self.start_progress
53
64
  @t = CS::Timer.new 0.5 do print "." end
data/clearsight.gemspec CHANGED
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency('aruba')
25
25
  spec.add_development_dependency('rake', '~> 0.9.2')
26
26
  spec.add_dependency('methadone', '~> 1.3.0')
27
+ spec.add_dependency('highline', '~> 1.6.20')
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module Clearsight
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.3.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: highline
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 1.6.20
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 1.6.20
97
111
  description: Common utilities for ClearSight Studio
98
112
  email:
99
113
  - jamon@clearsightstudio.com