negroku 2.4.1 → 2.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01bf413acd0b948297dbcced9766fefdad757d62
4
- data.tar.gz: a73e617613036fea3c2b172afa402de40b3a2e89
3
+ metadata.gz: 90b0dd4913acc2b6bd2a667860a768f333b15e7b
4
+ data.tar.gz: dedf7fc1f40a0ae5d4dcf04efbe5041428de355a
5
5
  SHA512:
6
- metadata.gz: f79094555d1d5359db52705d53e4ae264f9243e5c3d3cb16241cd6614e20020dc96d55772efb3f66b73bf2949ba1b8af6147dc55bbf2cb0f2e5ef102a0de0071
7
- data.tar.gz: 6a501c68f82e71ee792fab31d844c4206b649650051d8613229c935fcc6c781b2dd180d05cf6e11700bc58bde8fd6fbb06c301098b8e8b319bd4dae12624eb28
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
- execute :cp, fetch(:thinking_sphinx_configuration_file), '/tmp/sphinx.conf.bak'
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
- config_diff = capture "diff -q /tmp/sphinx.conf.bak #{fetch(:thinking_sphinx_configuration_file)}", raise_on_non_zero_exit: false
65
- set :thinking_sphinx_config_changed, !config_diff.empty?
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 20.seconds
5
- stop_timeout 20.seconds
6
- restart_timeout 20.seconds
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] %>"
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = '2.4.1'
2
+ VERSION = '2.4.2'
3
3
  end
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.1
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-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc