Changeset 8751
- Timestamp:
- 01/30/08 05:39:59 (6 months ago)
- Files:
-
- tools/capistrano/CHANGELOG (modified) (1 diff)
- tools/capistrano/lib/capistrano/recipes/deploy/scm/perforce.rb (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/capistrano/CHANGELOG
r7881 r8751 1 *SVN* 2 3 * Support p4sync_flags and p4client_root variables for Perforce [gseidman] 4 5 * Prepare for Net::SSH v2 by making sure Capistrano only tries to load Net::SSH versions less than 1.99.0 [Jamis Buck] 6 7 1 8 *2.1.0* October 14, 2007 2 9 tools/capistrano/lib/capistrano/recipes/deploy/scm/perforce.rb
r7030 r8751 26 26 # the files must be copied from there to their intended resting place. 27 27 def checkout(revision, destination) 28 p4_sync(revision, destination, "-f")28 p4_sync(revision, destination, p4sync_flags) 29 29 end 30 30 … … 33 33 # the files must be copied from there to their intended resting place. 34 34 def sync(revision, destination) 35 p4_sync(revision, destination, "-f")35 p4_sync(revision, destination, p4sync_flags) 36 36 end 37 37 … … 40 40 # the files must be copied from there to their intended resting place. 41 41 def export(revision, destination) 42 p4_sync(revision, destination, "-f")42 p4_sync(revision, destination, p4sync_flags) 43 43 end 44 44 … … 90 90 # intended resting place. 91 91 def p4_sync(revision, destination, options="") 92 p4client_root = "`#{command} #{authentication} client -o | grep ^Root | cut -f2`"93 92 scm authentication, :sync, options, "#{rev_no(revision)}", "&& cp -rf #{p4client_root} #{destination}" 94 93 end … … 109 108 variable(:p4passwd) || variable(:scm_password) 110 109 end 110 111 def p4sync_flags 112 variable(:p4sync_flags) || "-f" 113 end 114 115 def p4client_root 116 variable(:p4client_root) || "`#{command} #{authentication} client -o | grep ^Root | cut -f2`" 117 end 111 118 112 119 def rev_no(revision)