le1t0-capistrano 2.5.18.007 → 2.5.18.008

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 2.5.18.008 / Jul 1, 2010
2
+
3
+ Actually merged in new code
4
+
1
5
  == 2.5.18.007 / Jun 15, 2010
2
6
 
3
7
  Moved setting of running_migrations and running_cold_deploy to separate tasks so other task can hook in between
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.18.007
1
+ 2.5.18.008
@@ -154,6 +154,10 @@ end
154
154
  # of them with `cap -T'.
155
155
  # =========================================================================
156
156
 
157
+ before 'deploy:migrations', 'deploy:migrations_init'
158
+ before 'deploy:cold', 'deploy:cold_init'
159
+ before 'deploy:cold:migrations', 'deploy:cold_migrations_init'
160
+
157
161
  namespace :deploy do
158
162
  desc <<-DESC
159
163
  Deploys your project. This calls both `update' and `restart'. Note that \
@@ -402,7 +406,6 @@ namespace :deploy do
402
406
  task :migrations do
403
407
  # when using bundler, symlink has to run before migrate (unless you want to fully rebundle each deployment)
404
408
  set :migrate_target, :current
405
- set :running_migrations, true
406
409
  update_code
407
410
  symlink
408
411
  migrate
@@ -475,7 +478,6 @@ namespace :deploy do
475
478
  Deploys a `cold' application. It will deploy the code.
476
479
  DESC
477
480
  task :default do
478
- set :running_cold_deploy, true
479
481
  update
480
482
  end
481
483
 
@@ -484,14 +486,25 @@ namespace :deploy do
484
486
  pending migrations.
485
487
  DESC
486
488
  task :migrations do
487
- set :running_cold_deploy, true
488
- set :running_migrations, true
489
489
  update
490
490
  migrate
491
491
  end
492
492
 
493
493
  end
494
+
495
+ task :migrations_init do
496
+ set :running_migrations, true
497
+ end
494
498
 
499
+ task :cold_init do
500
+ set :running_cold_deploy, true
501
+ end
502
+
503
+ task :cold_migrations_init do
504
+ set :running_migrations, true
505
+ set :running_cold_deploy, true
506
+ end
507
+
495
508
  desc "This does nothing, but is here for backwards compatibility."
496
509
  task :start, :roles => :app do
497
510
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 5
8
8
  - 18
9
- - 7
10
- version: 2.5.18.007
9
+ - 8
10
+ version: 2.5.18.008
11
11
  platform: ruby
12
12
  authors:
13
13
  - Le1t0