standup 0.3.20 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.20
1
+ 0.3.22
@@ -1,6 +1,12 @@
1
1
  #!/bin/bash
2
2
 
3
- sudo -u www-data -E QUEUE=$1 VERBOSE=1 nohup rake environment resque:work& > log/resque_worker_$1_$2.log &
3
+ queueName=$1
4
+ if $queueName = 'ALL_QUEUES';then
5
+ $queueName = '*'
6
+ fi
7
+
8
+
9
+ sudo -u www-data -E QUEUE=$queueName VERBOSE=1 nohup rake environment resque:work& > log/resque_worker_$1_$2.log &
4
10
 
5
11
  echo $(($! - 1)) > tmp/pids/resque_$1_$2.pid
6
12
 
@@ -1,5 +1,5 @@
1
- <% ((scripts.webapp.params.respond_to?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"*" => 5 }).each_pair do |queue_name,num_of_workers|%>
2
- <%1.upto(num_of_workers) do |num|%>
1
+ <% ((scripts.webapp.params.respond_to?(:resque_queues) && scripts.webapp.params.resque_queues.presence) || {"ALL_QUEUES" => 1 }).each_pair do |queue_name,num_of_workers|%>
2
+ <%1.upto(num_of_workers) do |num|%>
3
3
  check process resque_<%= queue_name %>_<%= num %>
4
4
  with pidfile <%= scripts.webapp.app_path%>/tmp/pids/resque_<%= queue_name %>_<%=num %>.pid
5
5
  start program = "/bin/sh -c 'cd <%= scripts.webapp.app_path%>; RAILS_ENV=<%= scripts.webapp.params.rails_env%> script/resque <%= queue_name %> <%=num %>'"
data/scripts/resque.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  Standup.script :node do
2
2
  def run
3
3
  scripts.redis.install_from_resque
4
+
4
5
  path_to_resque_exec = "#{scripts.webapp.app_path}/script/resque"
5
6
  upload script_file('resque'),
6
7
  :to => path_to_resque_exec,
@@ -8,6 +9,7 @@ Standup.script :node do
8
9
  sudo "chown www-data:www-data #{path_to_resque_exec}"
9
10
  sudo "chmod +x #{path_to_resque_exec}"
10
11
 
12
+ sudo "mkdir #{scripts.webapp.app_path}/tmp/pids"
11
13
  with_processed_file script_file('resque_monit.conf') do |file|
12
14
  scripts.monit.add_watch file
13
15
  end
data/standup.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{standup}
8
- s.version = "0.3.20"
8
+ s.version = "0.3.22"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilia Ablamonov", "Artem Orlov", "Cloud Castle Inc."]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 20
10
- version: 0.3.20
9
+ - 22
10
+ version: 0.3.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilia Ablamonov