capistrano-didi 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +7 -0
- data/VERSION +1 -1
- data/capistrano-didi.gemspec +2 -2
- data/lib/didi/recipes/didi.rb +26 -6
- metadata +4 -4
data/CHANGELOG.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 0.4.3 16 Aug 2012
|
2
|
+
|
3
|
+
* fixed issue where deploy would fail on cleanup because file permissions (thx sara)
|
4
|
+
* added drush task: drush:fd to display feature diffs remotely
|
5
|
+
* added drush task: drush:fraforce to force-revert all features (by c31ck)
|
6
|
+
* the :baseline setting can now be an array so multiple features can be enabled (by c31ck)
|
7
|
+
|
1
8
|
## 0.4.2 19 June 2012
|
2
9
|
|
3
10
|
* fixed issue in deploy:setup where "chown" was created as a folder
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/capistrano-didi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-didi"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Koen Van Winckel"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-08-16"
|
13
13
|
s.description = "didi is a collection of recipes for capistrano that allow drupal to be deployed, tested and used in a CI environment"
|
14
14
|
s.email = "koenvw@gmail.com"
|
15
15
|
s.executables = ["didify", "didi"]
|
data/lib/didi/recipes/didi.rb
CHANGED
@@ -67,7 +67,7 @@ _cset(:previous_release_domain) { releases.length > 1 ? domain.to_a.map {
|
|
67
67
|
_cset(:is_multisite) { domain.to_a.size > 1 }
|
68
68
|
|
69
69
|
# =========================================================================
|
70
|
-
# Extra
|
70
|
+
# Extra dependency checks
|
71
71
|
# =========================================================================
|
72
72
|
depend :local, :command, "drush"
|
73
73
|
depend :remote, :command, "#{drush_path}drush"
|
@@ -144,7 +144,6 @@ namespace :deploy do
|
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
147
|
-
|
148
147
|
release_domain.each do |rd|
|
149
148
|
run "if [ ! -d #{rd} ]; then mkdir #{rd}; fi" # in case the default folder is not versioned
|
150
149
|
end
|
@@ -155,7 +154,10 @@ namespace :deploy do
|
|
155
154
|
ln -nfs #{shared_settings[i]} #{release_settings[i]}
|
156
155
|
CMD
|
157
156
|
end
|
157
|
+
end
|
158
158
|
|
159
|
+
desc "[internal] cleanup old symlinks, must run after deploy:symlink"
|
160
|
+
task :cleanup_shared_symlinks, :except => { :no_release => true } do
|
159
161
|
if previous_release
|
160
162
|
# FIXME: executes on initial deploy:cold?
|
161
163
|
# FIXME: this breaks the current site until deploy:symlink is executed ?
|
@@ -168,6 +170,7 @@ namespace :deploy do
|
|
168
170
|
end
|
169
171
|
end
|
170
172
|
end
|
173
|
+
after "deploy:symlink", "deploy:cleanup_shared_symlinks"
|
171
174
|
|
172
175
|
desc <<-DESC
|
173
176
|
Removes old releases and corresponding DB backups.
|
@@ -270,6 +273,13 @@ namespace :drush do
|
|
270
273
|
end
|
271
274
|
end
|
272
275
|
|
276
|
+
desc "Show features diff status"
|
277
|
+
task :fd do
|
278
|
+
domain.each do |d|
|
279
|
+
run "cd #{current_path}/#{drupal_path} && #{drush_path}drush" + (d == 'default' ? '' : " -l #{d}") + " features-diff"
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
273
283
|
desc "Revert all enabled feature modules on your site"
|
274
284
|
task :fra do
|
275
285
|
domain.each do |d|
|
@@ -277,6 +287,13 @@ namespace :drush do
|
|
277
287
|
end
|
278
288
|
end
|
279
289
|
|
290
|
+
desc "Force revert all enabled feature modules on your site"
|
291
|
+
task :fraforce do
|
292
|
+
domain.each do |d|
|
293
|
+
run "cd #{current_path}/#{drupal_path} && #{drush_path}drush" + (d == 'default' ? '' : " -l #{d}") + " features-revert-all --force -y"
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
280
297
|
desc "Install Drupal along with modules/themes/configuration using the specified install profile"
|
281
298
|
task :si do
|
282
299
|
domain.each do |d|
|
@@ -289,7 +306,9 @@ namespace :drush do
|
|
289
306
|
desc "[internal] Enable the baseline feature"
|
290
307
|
task :bl do
|
291
308
|
domain.each do |d|
|
292
|
-
|
309
|
+
baseline.to_a.each do |bl_item|
|
310
|
+
run "cd #{current_path}/#{drupal_path} && #{drush_path}drush" + (d == 'default' ? '' : " -l #{d}") + " pm-enable #{bl_item.gsub("%domain", d)} -y"
|
311
|
+
end
|
293
312
|
end
|
294
313
|
cc
|
295
314
|
end
|
@@ -426,7 +445,7 @@ namespace :manage do
|
|
426
445
|
desc 'Dump remote database and restore locally'
|
427
446
|
task :pull_dump do
|
428
447
|
abort("ERROR: multisite not supported") if is_multisite
|
429
|
-
abort("NO LOCAL DATABASE FOUND, set :local_database in the config file..")
|
448
|
+
abort("NO LOCAL DATABASE FOUND, set :local_database in the config file..") unless local_database
|
430
449
|
|
431
450
|
set(:runit, Capistrano::CLI.ui.ask("WARNING!! will overwrite this local database: '#{local_database}', type 'yes' to continue: "))
|
432
451
|
if runit == 'yes'
|
@@ -447,10 +466,11 @@ namespace :manage do
|
|
447
466
|
end
|
448
467
|
end
|
449
468
|
|
469
|
+
desc 'Dump local database and restore remote'
|
450
470
|
task :push_dump do
|
451
471
|
abort("ERROR: multisite not supported") if is_multisite
|
452
|
-
abort("NO LOCAL DATABASE FOUND, set :local_database in the config file..")
|
453
|
-
abort("THIS STAGE: #{stage} DOES NOT SUPPORT manage:push_dump")
|
472
|
+
abort("NO LOCAL DATABASE FOUND, set :local_database in the config file..") unless local_database
|
473
|
+
abort("THIS STAGE: #{stage} DOES NOT SUPPORT manage:push_dump") unless push_dump_enabled
|
454
474
|
|
455
475
|
set(:runit, Capistrano::CLI.ui.ask("WARNING!! will overwrite this REMOTE database: '#{db_name}', type 'yes' to continue: "))
|
456
476
|
if runit == 'yes'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-didi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Koen Van Winckel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-08-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|