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 +1 -1
- data/le1t0-capistrano.gemspec +2 -2
- data/lib/capistrano/recipes/deploy.rb +16 -12
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.18.
|
1
|
+
2.5.18.021
|
data/le1t0-capistrano.gemspec
CHANGED
@@ -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.
|
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-
|
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
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
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
|
-
|
396
|
-
|
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:
|
4
|
+
hash: 37
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 5
|
9
9
|
- 18
|
10
|
-
-
|
11
|
-
version: 2.5.18.
|
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-
|
19
|
+
date: 2010-12-09 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|