engineyard-eycap 0.3.10 → 0.3.11

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.11 / 2008-11-09
2
+ * filtered_remote_cache uses svn switch
3
+
1
4
  == 0.3.9 / 2008-09-29
2
5
  * add reindex task for /engineyard/bin/acts_as_sphinx_searchd
3
6
  * add reindex and configure task for /engineyard/bin/ultrasphinx_searchd
@@ -1,7 +1,16 @@
1
+ require 'capistrano/recipes/deploy/scm/base'
1
2
  require 'capistrano/recipes/deploy/strategy/remote'
2
3
 
3
4
  module Capistrano
4
5
  module Deploy
6
+ module SCM
7
+ class Subversion < Base
8
+ def switch(revision, checkout)
9
+ "cd #{checkout} && #{scm :switch, verbose, authentication, "-r#{revision}", repository}"
10
+ end
11
+ end
12
+ end
13
+
5
14
  module Strategy
6
15
 
7
16
  # Implements the deployment strategy that keeps a cached checkout of
@@ -32,7 +41,7 @@ module Capistrano
32
41
  logger.trace "checking if the cached copy repository root matches this deploy, then updating it"
33
42
  command = "if [ -d #{repository_cache} ] && ! echo '#{configuration[:repository]}' | grep -q `svn info #{repository_cache} | grep 'Repository Root' | awk '{print $3}'`; then " +
34
43
  "rm -rf #{repository_cache} && #{source.checkout(revision, repository_cache)}; " +
35
- "elif [ -d #{repository_cache} ]; then #{source.sync(revision, repository_cache)}; " +
44
+ "elif [ -d #{repository_cache} ]; then #{source.switch(revision, repository_cache)}; " +
36
45
  "else #{source.checkout(revision, repository_cache)}; fi"
37
46
  scm_run(command)
38
47
  end
data/lib/eycap.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.3.9'
2
+ VERSION = '0.3.11'
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.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard