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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a121f8d58bd4f6113463f88d48f877113a8483ff
4
- data.tar.gz: ac093fbcd52c5b6d799d8b48b5f81afc11b813b5
3
+ metadata.gz: 33764be7323b31e19673fc0512df07787def2cd8
4
+ data.tar.gz: a84499e1d958c3694a65a5d46f1c5016c3b282d5
5
5
  SHA512:
6
- metadata.gz: 3490c082ec3968144ec03292c39859a3b093e293e5c4c3e08ca5fcb031d0146c02fe94687584d1cc3f738210f76078984e339cafbb4e5ce3b4a6f944524e07e0
7
- data.tar.gz: 9be7b43c630031913893b23baf7c6725617ce7db5bdf7c3f4e0d6d6eef5721d1399612eac4cd2b0c89701861bf18b86ac78412fca82aa1a84bcce792deedfc66
6
+ metadata.gz: 9ae068e727318bb692d4919583f4667d4aa8d3fa8f28d66908a5b4e23aa7a1337dda23e2f714f959a65ef1496874cb049da977e9030f712ce1f42f296e2d6133
7
+ data.tar.gz: 9a14d101aa5ee375ebf5d47f46118e7f0aac7e1273121c6900a0774a869d309b8f651e5f941791f428f9e62d2fb9f3a1a8bc0e981fc1c25eb75f9ab94ecde0a8
@@ -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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'h2ocube_rails_tasks'
6
- s.version = '0.0.3'
6
+ s.version = '0.0.4'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Ben']
9
9
  s.email = ['ben@h2ocube.com']
@@ -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.3
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-04-10 00:00:00.000000000 Z
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: