clearsight 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cs +11 -0
- data/lib/clearsight/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0eee2073e7356dd44ec161616a5bacbdabad306
|
4
|
+
data.tar.gz: 56f4e02578623e4a3cbc0f9b118279d1efa45fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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: 0.0.
|
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.
|
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
|