negroku 2.4.1 → 2.4.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90b0dd4913acc2b6bd2a667860a768f333b15e7b
|
4
|
+
data.tar.gz: dedf7fc1f40a0ae5d4dcf04efbe5041428de355a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e88de7c39d95d51ab839f3b21939f2c73289c5bab317bac921ed5faca8c2092f956fb3793914202dee0ba8e582302afd3b2352939473354d74af6a40e8177b0
|
7
|
+
data.tar.gz: 3806015f329ad0489cd38af8e55664b7fbd0953c8bd781244750a4532b49871a1d9e32f5d53c78c26d4be0cd4492c82051beeae7bfd307fc093007728dbe5ba7
|
@@ -52,7 +52,11 @@ namespace :negroku do
|
|
52
52
|
task :backup_config do
|
53
53
|
on release_roles fetch(:thinking_sphinx_roles) do
|
54
54
|
within "#{shared_path}/config" do
|
55
|
-
|
55
|
+
if test("[ -f #{fetch(:thinking_sphinx_configuration_file)} ]")
|
56
|
+
execute :cp, fetch(:thinking_sphinx_configuration_file), '/tmp/sphinx.conf.bak'
|
57
|
+
else
|
58
|
+
set :thinking_sphinx_config_changed, true
|
59
|
+
end
|
56
60
|
end
|
57
61
|
end
|
58
62
|
end
|
@@ -61,8 +65,10 @@ namespace :negroku do
|
|
61
65
|
task :check_config do
|
62
66
|
on release_roles fetch(:thinking_sphinx_roles) do
|
63
67
|
within "#{shared_path}/config" do
|
64
|
-
|
65
|
-
|
68
|
+
if fetch(:thinking_sphinx_config_changed, nil).nil?
|
69
|
+
config_diff = capture "diff -q /tmp/sphinx.conf.bak #{fetch(:thinking_sphinx_configuration_file)}", raise_on_non_zero_exit: false
|
70
|
+
set :thinking_sphinx_config_changed, !config_diff.empty?
|
71
|
+
end
|
66
72
|
end
|
67
73
|
end
|
68
74
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
group 'delayed-jobs' do
|
2
2
|
chain grace: 10.seconds
|
3
3
|
|
4
|
-
start_timeout
|
5
|
-
stop_timeout
|
6
|
-
restart_timeout
|
4
|
+
start_timeout <%= options[:start_timeout] || "30.seconds" %>
|
5
|
+
stop_timeout <%= options[:stop_timeout] || "40.seconds" %>
|
6
|
+
restart_timeout <%= options[:restart_timeout] || "30.seconds" %>
|
7
7
|
|
8
8
|
workers_count = '<%= fetch(:delayed_job_workers || 1) %>'.to_i
|
9
9
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
process "<%= options[:name] %>" do
|
2
|
-
start_timeout <%= options[:start_timeout] %>
|
3
|
-
stop_timeout <%= options[:stop_timeout] %>
|
4
|
-
restart_timeout <%= options[:restart_timeout] %>
|
2
|
+
start_timeout <%= options[:start_timeout] || "30.seconds" %>
|
3
|
+
stop_timeout <%= options[:stop_timeout] || "20.seconds" %>
|
4
|
+
restart_timeout <%= options[:restart_timeout] || "30.seconds" %>
|
5
5
|
|
6
6
|
pid_file "<%= options[:pid_file] %>"
|
7
7
|
start_command "<%= options[:start_command] %>"
|
data/lib/negroku/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: negroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|