Changeset 6589
- Timestamp:
- 04/27/07 02:20:21 (3 years ago)
- Files:
-
- tools/capistrano/CHANGELOG (modified) (2 diffs)
- tools/capistrano/lib/capistrano/recipes/deploy/strategy/copy.rb (modified) (4 diffs)
- tools/capistrano/Rakefile (modified) (1 diff)
- tools/capistrano/test/deploy (added)
- tools/capistrano/test/deploy/strategy (added)
- tools/capistrano/test/deploy/strategy/copy_test.rb (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/capistrano/CHANGELOG
r6542 r6589 1 1 *SVN* 2 2 3 * Make the copy strategy check out to a temporary directory [Jamis Buck] 4 5 6 *1.99.0 (2.0 Preview 1)* April 24, 2007 7 3 8 * Add `capify' script to make it easier to prepare a project for deployment using cap [Jamis Buck] 4 9 … … 18 23 19 24 * Merged the Configuration and Actor classes, performed various other massive refactorings of the code [Jamis Buck] 25 20 26 21 27 *1.4.1* (February 24, 2007) tools/capistrano/lib/capistrano/recipes/deploy/strategy/copy.rb
r6525 r6589 1 1 require 'capistrano/recipes/deploy/strategy/base' 2 2 require 'fileutils' 3 require 'tempfile' # Dir.tmpdir 3 4 4 5 module Capistrano … … 52 53 # name the local copy and archive file. 53 54 def destination 54 @destination ||= File. basename(configuration[:release_path])55 @destination ||= File.join(tmpdir, File.basename(configuration[:release_path])) 55 56 end 56 57 … … 75 76 # compressed to. 76 77 def filename 77 @filename ||= "#{destination}.#{compression_extension}" 78 @filename ||= File.join(tmpdir, "#{File.basename(destination)}.#{compression_extension}") 79 end 80 81 # The directory to which the copy should be checked out 82 def tmpdir 83 @tmpdir ||= configuration[:copy_dir] || Dir.tmpdir 78 84 end 79 85 … … 81 87 # temporarily stored. 82 88 def remote_filename 83 @remote_filename ||= "/tmp/#{ filename}"89 @remote_filename ||= "/tmp/#{File.basename(filename)}" 84 90 end 85 91 tools/capistrano/Rakefile
r6319 r6589 51 51 desc "Publish the beta gem" 52 52 task :pgem => [:package] do 53 Rake::SshFilePublisher.new(" davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload54 `ssh davidhh@wrath.rubyonrails.org './gemupdate.sh'`53 Rake::SshFilePublisher.new("wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload 54 `ssh wrath.rubyonrails.org './gemupdate.sh'` 55 55 end 56 56