h2ocube_rails_tasks 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +5 -0
- data/h2ocube_rails_tasks.gemspec +1 -1
- data/lib/h2ocube_rails_tasks/tasks/rainbows.rb +25 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33764be7323b31e19673fc0512df07787def2cd8
|
4
|
+
data.tar.gz: a84499e1d958c3694a65a5d46f1c5016c3b282d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ae068e727318bb692d4919583f4667d4aa8d3fa8f28d66908a5b4e23aa7a1337dda23e2f714f959a65ef1496874cb049da977e9030f712ce1f42f296e2d6133
|
7
|
+
data.tar.gz: 9a14d101aa5ee375ebf5d47f46118e7f0aac7e1273121c6900a0774a869d309b8f651e5f941791f428f9e62d2fb9f3a1a8bc0e981fc1c25eb75f9ab94ecde0a8
|
data/README.rdoc
CHANGED
@@ -13,6 +13,11 @@ This is plugin to add some useful tasks to rails.
|
|
13
13
|
rake unicorn:start # Start unicorn server
|
14
14
|
rake unicorn:stop # Stop unicorn server
|
15
15
|
|
16
|
+
# has config/rainbows.rb
|
17
|
+
rake rainbows:restart # Hot restart rainbows server
|
18
|
+
rake rainbows:start # Start rainbows server
|
19
|
+
rake rainbows:stop # Stop rainbows server
|
20
|
+
|
16
21
|
# has config/puma.rb
|
17
22
|
rake puma:restart # Hot restart puma server
|
18
23
|
rake puma:start # Start puma server
|
data/h2ocube_rails_tasks.gemspec
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
if File.exists? Rails.root.join('config/rainbows.rb')
|
2
|
+
namespace :rainbows do
|
3
|
+
desc 'Start rainbows server'
|
4
|
+
task :start => :stop do
|
5
|
+
zfben_rails_rake_system 'mkdir tmp' unless File.exists? Rails.root.join('tmp')
|
6
|
+
zfben_rails_rake_system 'rainbows -c config/rainbows.rb -E production -D'
|
7
|
+
end
|
8
|
+
|
9
|
+
desc 'Stop rainbows server'
|
10
|
+
task :stop do
|
11
|
+
if File.exists? Rails.root.join('tmp/rainbows.pid')
|
12
|
+
zfben_rails_rake_system 'kill -QUIT `cat tmp/rainbows.pid`'
|
13
|
+
sleep 1
|
14
|
+
zfben_rails_rake_system 'rm tmp/rainbows.pid' if File.exists? Rails.root.join('tmp/rainbows.pid')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
desc 'Hot restart rainbows server'
|
19
|
+
task :restart do
|
20
|
+
if File.exists? Rails.root.join('tmp/rainbows.pid')
|
21
|
+
zfben_rails_rake_system 'kill -USR2 `cat tmp/rainbows.pid`'
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h2ocube_rails_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- lib/h2ocube_rails_tasks/tasks/git.rb
|
42
42
|
- lib/h2ocube_rails_tasks/tasks/mongodb.rb
|
43
43
|
- lib/h2ocube_rails_tasks/tasks/puma.rb
|
44
|
+
- lib/h2ocube_rails_tasks/tasks/rainbows.rb
|
44
45
|
- lib/h2ocube_rails_tasks/tasks/resque.rb
|
45
46
|
- lib/h2ocube_rails_tasks/tasks/unicorn.rb
|
46
47
|
homepage: https://github.com/h2ocube/h2ocube_rails_tasks
|
@@ -67,3 +68,4 @@ signing_key:
|
|
67
68
|
specification_version: 4
|
68
69
|
summary: ''
|
69
70
|
test_files: []
|
71
|
+
has_rdoc:
|