Skip to content

Commit

Permalink
Doc corrections. Fix dependency checking for remote cache strategy.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jamis committed Jul 10, 2007
1 parent 32590e1 commit 36ced55
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Expand Up @@ -4,7 +4,7 @@

* Make sure deploy:check aborts if it fails [Jamis Buck]

* Spelling correction in docs [Tim Carey-Smith]
* Spelling corrections in docs [Tim Carey-Smith, Giles Bowkett]


*1.99.3 (2.0 Preview 4)* June 28, 2007
Expand Down
14 changes: 7 additions & 7 deletions lib/capistrano/recipes/deploy.rb
Expand Up @@ -88,7 +88,7 @@ def with_env(name, value)
desc <<-DESC
Deploys your project. This calls both `update' and `restart'. Note that \
this will generally only work for applications that have already been deployed \
once. For a "cold" deploy, you'll want to take a look at the `cold_deploy' \
once. For a "cold" deploy, you'll want to take a look at the `deploy:cold' \
task, which handles the cold start specifically.
DESC
task :default do
Expand Down Expand Up @@ -180,8 +180,8 @@ def with_env(name, value)
end

desc <<-DESC
Updates the symlink to the most recently deployed version. Capistrano works
by putting each new release of your application in its own directory. When
Updates the symlink to the most recently deployed version. Capistrano works \
by putting each new release of your application in its own directory. When \
you deploy a new version, this task's job is to update the `current' symlink \
to point at the new version. You will rarely need to call this task \
directly; instead, use the `deploy' task (which performs a complete \
Expand Down Expand Up @@ -264,9 +264,9 @@ def with_env(name, value)
deployed version of the app. However, you can specify a different release \
via the migrate_target variable, which must be one of :latest (for the \
default behavior), or :current (for the release indicated by the \
`current' symlink). Strings will work for those values instead of symbols,
too. You can also specify additional environment variables to pass to rake
via the migrate_env variable. Finally, you can specify the full path to the
`current' symlink). Strings will work for those values instead of symbols, \
too. You can also specify additional environment variables to pass to rake \
via the migrate_env variable. Finally, you can specify the full path to the \
rake executable by setting the rake variable. The defaults are:
set :rake, "rake"
Expand Down Expand Up @@ -368,7 +368,7 @@ def with_env(name, value)
Deploys and starts a `cold' application. This is useful if you have not \
deployed your application before, or if your application is (for some \
other reason) not currently running. It will deploy the code, run any \
pending migrations, and then instead of invoking `deploy:restart', it will
pending migrations, and then instead of invoking `deploy:restart', it will \
invoke `deploy:start' to fire up the application servers.
DESC
task :cold do
Expand Down
6 changes: 6 additions & 0 deletions lib/capistrano/recipes/deploy/strategy/remote_cache.rb
Expand Up @@ -16,6 +16,12 @@ def deploy!
copy_repository_cache
end

def check!
super.check do |d|
d.remote.writable(shared_path)
end
end

private

def repository_cache
Expand Down

0 comments on commit 36ced55

Please sign in to comment.