le1t0-capistrano 2.5.18.020 → 2.5.18.021

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.18.020
1
+ 2.5.18.021
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{le1t0-capistrano}
8
- s.version = "2.5.18.020"
8
+ s.version = "2.5.18.021"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Le1t0"]
12
- s.date = %q{2010-12-07}
12
+ s.date = %q{2010-12-09}
13
13
  s.description = %q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
14
14
  s.email = ["dev@ewout.to"]
15
15
  s.executables = ["capify", "cap"]
@@ -64,6 +64,8 @@ _cset(:previous_revision) { capture("cat #{previous_release}/REVISION").chomp }
64
64
 
65
65
  _cset(:run_method) { fetch(:use_sudo, true) ? :sudo : :run }
66
66
 
67
+ _cset :disable_capistrano_migrations, false
68
+
67
69
  # some tasks, like symlink, need to always point at the latest release, but
68
70
  # they can also (occassionally) be called standalone. In the standalone case,
69
71
  # the timestamped release_path will be inaccurate, since the directory won't
@@ -381,19 +383,21 @@ namespace :deploy do
381
383
  set :migrate_target, :latest
382
384
  DESC
383
385
  task :migrate, :roles => :db, :only => { :primary => true } do
384
- rake = fetch(:rake, "rake")
385
- rails_env = fetch(:rails_env, "production")
386
- migrate_env = fetch(:migrate_env, "")
387
- migrate_target = fetch(:migrate_target, :latest)
388
-
389
- directory = case migrate_target.to_sym
390
- when :current then current_path
391
- when :latest then current_release
392
- else raise ArgumentError, "unknown migration target #{migrate_target.inspect}"
393
- end
386
+ unless disable_capistrano_migrations
387
+ rake = fetch(:rake, "rake")
388
+ rails_env = fetch(:rails_env, "production")
389
+ migrate_env = fetch(:migrate_env, "")
390
+ migrate_target = fetch(:migrate_target, :latest)
391
+
392
+ directory = case migrate_target.to_sym
393
+ when :current then current_path
394
+ when :latest then current_release
395
+ else raise ArgumentError, "unknown migration target #{migrate_target.inspect}"
396
+ end
394
397
 
395
- puts "#{migrate_target} => #{directory}"
396
- run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate"
398
+ puts "#{migrate_target} => #{directory}"
399
+ run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate"
400
+ end
397
401
  end
398
402
 
399
403
  desc <<-DESC
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: le1t0-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 5
9
9
  - 18
10
- - 20
11
- version: 2.5.18.020
10
+ - 21
11
+ version: 2.5.18.021
12
12
  platform: ruby
13
13
  authors:
14
14
  - Le1t0
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-07 00:00:00 +01:00
19
+ date: 2010-12-09 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency