engineyard-eycap 0.3.5 → 0.3.6
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/History.txt
CHANGED
@@ -30,7 +30,7 @@ module Capistrano
|
|
30
30
|
|
31
31
|
def update_repository_cache
|
32
32
|
logger.trace "checking if the cached copy repository root matches this deploy, then updating it"
|
33
|
-
command = "if [ -d #{repository_cache} ] && ! echo '#{configuration[:repository]}' |
|
33
|
+
command = "if [ -d #{repository_cache} ] && ! echo '#{configuration[:repository]}' | grep -q `svn info #{repository_cache} | grep 'Repository Root' | awk '{print $3}'`; then " +
|
34
34
|
"rm -rf #{repository_cache} && #{source.checkout(revision, repository_cache)}; " +
|
35
35
|
"elif [ -d #{repository_cache} ]; then #{source.sync(revision, repository_cache)}; " +
|
36
36
|
"else #{source.checkout(revision, repository_cache)}; fi"
|
data/lib/eycap/recipes/sphinx.rb
CHANGED
@@ -23,12 +23,20 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
23
23
|
task :restart, :roles => :app, :only => {:sphinx => true} do
|
24
24
|
sudo "/usr/bin/monit restart all -g sphinx_#{application}"
|
25
25
|
end
|
26
|
-
|
27
|
-
desc "Symlink the sphinx config file"
|
28
26
|
task :symlink, :roles => :app, :only => {:sphinx => true}, :except => {:no_release => true} do
|
29
27
|
run "if [ -d #{latest_release}/config/ultrasphinx ]; then mv #{latest_release}/config/ultrasphinx #{latest_release}/config/ultrasphinx.bak; fi"
|
30
28
|
run "ln -nfs #{shared_path}/config/ultrasphinx #{latest_release}/config/ultrasphinx"
|
31
29
|
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
namespace :thinking_sphinx do
|
34
|
+
desc "Symlink the thinking sphinx config file and directory"
|
35
|
+
task :symlink, :roles => :app, :only => {:sphinx => true}, :except => {:no_release => true} do
|
36
|
+
run "if [ -d #{latest_release}/config/thinkingsphinx ]; then mv #{latest_release}/config/thinkingsphinx #{latest_release}/config/thinkingsphinx.bak; fi"
|
37
|
+
run "ln -nfs #{shared_path}/config/thinkingsphinx #{latest_release}/config/thinkingsphinx"
|
38
|
+
run "ln -nfs #{shared_path}/config/sphinx.yml #{latest_release}/config/sphinx.yml"
|
39
|
+
end
|
32
40
|
end
|
33
41
|
|
34
42
|
end
|
data/lib/eycap.rb
CHANGED