clearsight 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cs +11 -0
  3. data/lib/clearsight/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d0bf01b2705f26d7ba617aaac1e5a0cddb54e96
4
- data.tar.gz: cbb58e74ac61ddb08aacef6b734c4d00ead3e795
3
+ metadata.gz: b0eee2073e7356dd44ec161616a5bacbdabad306
4
+ data.tar.gz: 56f4e02578623e4a3cbc0f9b118279d1efa45fb9
5
5
  SHA512:
6
- metadata.gz: f62a2bd3642ee45a72534ab5d59d000f599c908d8a7792f33b56c5a94bae4798672fcf3fb78e47e92764f3811da5fc5697d5398dbaa0bdcaf488e324e16b90ab
7
- data.tar.gz: a6850e1d024fc3e499827a84783337dbde5009f9ac2cefc4865ec841e1fb1bb09ab36612e3160d4be897904add7a3ef4fece3906a19e3559f83dce45b62809a2
6
+ metadata.gz: b317414dff23a282e9aa24acb70dfcf6e1b9cfa737350629b535d6c2ea1a5553da70356560d9c34b4ba228b1fa5bbf9f0fe66f91dc72eb15d8a720c5f64e51ba
7
+ data.tar.gz: 09cbb774acfe593a71e1c4d828ba3bb0447b5aaecb3f9c7a42ec6d2b64bd6f3e24d3676b59c0bed2abdcf55d3640e7bf55687e5e8475e4b85472a2ea27641d5f
data/bin/cs CHANGED
@@ -16,6 +16,7 @@ class App
16
16
  when :deploy then CS::Deploy.deploy(args)
17
17
  when :update then update
18
18
  when :help then show_help
19
+ when :killrails then killrails(args.first || 3000)
19
20
  else
20
21
  puts "Invalid command."
21
22
  show_help
@@ -26,6 +27,8 @@ class App
26
27
  puts "USAGE:"
27
28
  puts " deploy <setup>"
28
29
  puts " Deploys or sets up deployment to a remote server. Replaces gitdeploysetup."
30
+ puts " killrails <port>"
31
+ puts " Kills a rails server running on the given port. Only works on Linux (so far)."
29
32
  puts " update"
30
33
  puts " Updates the gem. Same as `gem update clearsight`."
31
34
  end
@@ -37,6 +40,14 @@ class App
37
40
  end
38
41
  puts "done."
39
42
  end
43
+
44
+ def self.killrails(port)
45
+ print "Killing Rails."
46
+ start_progress do
47
+ sh "fuser -n tcp -k #{port}"
48
+ end
49
+ puts "dead."
50
+ end
40
51
 
41
52
  def self.start_progress
42
53
  @t = CS::Timer.new 0.5 do print "." end
@@ -1,3 +1,3 @@
1
1
  module Clearsight
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.1.5
141
+ rubygems_version: 2.0.3
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Common utilities for ClearSight Studio, a web and mobile app development