engineyard-eycap 0.3.10 → 0.3.11
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 +3 -0
- data/lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb +10 -1
- data/lib/eycap.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -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.
|
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