capistrano-demonz 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +18 -0
- data/README.md +8 -3
- data/lib/demonz/drupal.rb +6 -0
- data/lib/demonz/version.rb +1 -1
- metadata +2 -1
data/.gitignore
ADDED
data/README.md
CHANGED
@@ -2,11 +2,16 @@
|
|
2
2
|
|
3
3
|
Capistrano recipes developed for use by [Demonz Media](http://demonzmedia.com).
|
4
4
|
|
5
|
-
**Current version:** 0.0.
|
5
|
+
**Current version:** 0.0.9
|
6
6
|
|
7
7
|
## Changes ##
|
8
|
+
### 0.0.9 ###
|
9
|
+
* Release name is now set in a Drupal variable ('site_release_name') post-migrate.
|
10
|
+
|
8
11
|
### 0.0.8 ###
|
9
|
-
* Added 'deploy:delete_release' for the Drupal recipe, lets you remove a specific release (and cleanup as required).
|
12
|
+
* Added 'deploy:delete_release' for the Drupal recipe, lets you remove a specific release (and cleanup as required). Run with (replace 'MYRELEASE'):
|
13
|
+
|
14
|
+
$ cap deploy:delete_release RELEASE="MYRELEASE"
|
10
15
|
|
11
16
|
### 0.0.6/0.0.7
|
12
17
|
* Fixed a number of bugs and default settings issues.
|
@@ -42,7 +47,7 @@ require 'capistrano/ext/multistage'
|
|
42
47
|
require 'demonz/drupal'
|
43
48
|
```
|
44
49
|
|
45
|
-
Open up `deploy.rb` and replace with:
|
50
|
+
Open up `config/deploy.rb` and replace with:
|
46
51
|
|
47
52
|
```ruby
|
48
53
|
set :stages, %w(production staging)
|
data/lib/demonz/drupal.rb
CHANGED
@@ -260,6 +260,11 @@ configuration.load do
|
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
263
|
+
desc "Set release name for site"
|
264
|
+
task :update_visible_release_name, :roles => :web, :except => { :no_release => true } do
|
265
|
+
run "#{drush_bin} -r #{latest_release} vset --yes site_release_version `git describe --tags`"
|
266
|
+
end
|
267
|
+
|
263
268
|
desc "Compile SASS (using Compass) for this release"
|
264
269
|
task :compile_sass, :roles => :web, :except => { :no_release => true } do
|
265
270
|
themes = fetch(:themes, [])
|
@@ -312,6 +317,7 @@ configuration.load do
|
|
312
317
|
create_db
|
313
318
|
copy_old_to_new_db
|
314
319
|
run_update_scripts
|
320
|
+
update_visible_release_name
|
315
321
|
compile_sass if uses_sass
|
316
322
|
|
317
323
|
# Run drush updb just incase
|
data/lib/demonz/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-demonz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -50,6 +50,7 @@ executables: []
|
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
|
+
- .gitignore
|
53
54
|
- Gemfile
|
54
55
|
- LICENSE.txt
|
55
56
|
- README.md
|