negroku 2.3.3 → 2.3.4

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: 47fbe541a572af01e0198fb24c1edad42d1fdb6e
4
- data.tar.gz: 18fcf84717549fd7b30d4e16c0179cb503860382
3
+ metadata.gz: 49df8e7185364d3baa0e9cf231fd651cbd33d327
4
+ data.tar.gz: dff869ebbc0b4916a9cd6d2d15265008724ae45f
5
5
  SHA512:
6
- metadata.gz: 4906ec12a9ec0f92b1f0ca3a7e815fd807d6433dd68696eb58de51dba2e671412f95c9f913953edc34a51205701c6c3e9d28c23a8cd3813f73d6cd032f36e83a
7
- data.tar.gz: 3621dac63653de1cee3bfb22ab7b5582063cdf9257f19e3ee27f7a08a2e7319abe0a23e14f5001201de5613092a83a1714e2ecd1894af4d839fe83ed3e5ef695
6
+ metadata.gz: f058feb0b26a8efa29d1ec5fce42f4cdda51efc0af302e774c68becc7846d2c870670fd419dab2b3b2037739a687ffa8710d55cc9ba30efa1f8433e1aa79f77a
7
+ data.tar.gz: c2a829026912082bf193ae5ba15af6f7c56f4c20ea61be311c8acaa2d00b1bdb0b46e22d0329972c99c1788004756692bcd5039abdba17f0599935dfbea02bdd
@@ -5,7 +5,7 @@
5
5
  namespace :load do
6
6
  task :defaults do
7
7
 
8
- set :sphinx_roles, :app
8
+ set :thinking_sphinx_roles, :app
9
9
 
10
10
  # Local path to look for custom config template
11
11
  set :thinking_sphinx_template, -> { "config/deploy/#{fetch(:stage)}/thinking_sphinx.yml.erb" }
@@ -31,7 +31,7 @@ namespace :negroku do
31
31
 
32
32
  desc "Upload thinking sphinx configuration file"
33
33
  task :setup do
34
- on release_roles fetch(:sphinx_roles) do
34
+ on release_roles fetch(:thinking_sphinx_roles) do
35
35
  within "#{shared_path}/config" do
36
36
  template_path = fetch(:thinking_sphinx_template)
37
37
 
@@ -48,18 +48,18 @@ namespace :negroku do
48
48
  end
49
49
  end
50
50
 
51
- task :backup_config do
52
- on release_roles fetch(:sphinx_roles) do
51
+ after 'thinking_sphinx:configure', :backup_config do
52
+ on release_roles fetch(:thinking_sphinx_roles) do
53
53
  within "#{shared_path}/config" do
54
54
  execute :cp, fetch(:thinking_sphinx_configuration_file), '/tmp/sphinx.conf.bak'
55
55
  end
56
56
  end
57
57
  end
58
58
  # Backup the config on every configure
59
- Rake::Task['thinking_sphinx:configure'].enhance ['negroku:thinking_sphinx:backup_config']
59
+ # Rake::Task['thinking_sphinx:configure'].enhance ['negroku:thinking_sphinx:backup_config']
60
60
 
61
61
  task :check_config do
62
- on release_roles fetch(:sphinx_roles) do
62
+ on release_roles fetch(:thinking_sphinx_roles) do
63
63
  within "#{shared_path}/config" do
64
64
  config_diff = capture "diff -q /tmp/sphinx.conf.bak #{fetch(:thinking_sphinx_configuration_file)}", raise_on_non_zero_exit: false
65
65
  set :thinking_sphinx_config_changed, !config_diff.empty?
@@ -92,7 +92,7 @@ end
92
92
 
93
93
  # Ensure the folders needed exist
94
94
  task 'deploy:check:directories' do
95
- on release_roles fetch(:sphinx_roles) do
95
+ on release_roles fetch(:thinking_sphinx_roles) do
96
96
  execute :mkdir, '-pv', "#{shared_path}/db"
97
97
  execute :mkdir, '-pv', "#{shared_path}/tmp/pids"
98
98
  execute :mkdir, '-pv', "#{shared_path}/sphinx_binlog"
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: negroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso