engineyard-eycap 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.6 / 2008-07-17
2
+ * features updated VERSION
3
+
1
4
  == 0.3.5 / 2008-07-17
2
5
  * filtered_remote_cache uses cached checkout's repository root for comparison for speedier tagged/branched deploys
3
6
 
@@ -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]}' | egrep -q \"^`svn info #{repository_cache} | grep 'Repository Root' | awk '{print $3}'`\"; then " +
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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-eycap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard