capistrano-demonz 0.0.14 → 0.0.15

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/CHANGELOG.md ADDED
@@ -0,0 +1,40 @@
1
+ **Current version:** 0.0.15
2
+
3
+ ## Changes ##
4
+ ### 0.0.15 ###
5
+ * Fixed issue where update script could sometimes not have enough permission to run.
6
+
7
+ ### 0.0.14 ###
8
+ * Moved changelog into CHANGELOG.md
9
+ * Update script ('sites/all/scripts/{release}/update.sh') is now executable by owner
10
+ * Release name ('site_release_name') is now set properly.
11
+ * Added build script.
12
+
13
+ ### 0.0.13 ###
14
+ * Fixes stupid issue where 'chmod' wasn't included in previous fix.
15
+
16
+ ### 0.0.12 (yanked) ###
17
+ * Fixed issue where update scripts weren't executable by the group.
18
+
19
+ ### 0.0.11 ###
20
+ * Fixed 'current' symlink deletion in deploy:delete_release.
21
+
22
+ ### 0.0.10 ###
23
+ * Fixed issue where incorrect database names were being generated.
24
+
25
+ ### 0.0.9 ###
26
+ * Release name is now set in a Drupal variable ('site_release_name') post-migrate.
27
+
28
+ ### 0.0.8 ###
29
+ * Added 'deploy:delete_release' for the Drupal recipe, lets you remove a specific release (and cleanup as required). Run with (replace 'MYRELEASE'):
30
+
31
+ $ cap deploy:delete_release RELEASE="MYRELEASE"
32
+
33
+ ### 0.0.6/0.0.7
34
+ * Fixed a number of bugs and default settings issues.
35
+ * Added automated Compass (SASS) compilation
36
+
37
+ ### 0.0.5
38
+ * Initial stable release
39
+
40
+ Only includes a Drupal recipe for now.
data/build.sh ADDED
@@ -0,0 +1,48 @@
1
+ #!/bin/bash
2
+
3
+ push=true
4
+
5
+ help()
6
+ {
7
+ cat <<HELP
8
+
9
+ usage: ./build
10
+ usage: ./build --no-push
11
+
12
+ Flags:
13
+ -n (--no-push) Don't push to rubygems.org
14
+
15
+ HELP
16
+ exit 0
17
+ }
18
+
19
+ # From http://mywiki.wooledge.org/BashFAQ/035.
20
+ while :
21
+ do
22
+ case $1 in
23
+ -h | --help | -\?)
24
+ help
25
+ exit 0 # This is not an error, User asked help. Don't do "exit 1"
26
+ ;;
27
+ -n | --no-push)
28
+ push=false
29
+ break
30
+ ;;
31
+ -*)
32
+ echo "WARN: Unknown option (ignored): $1" >&2
33
+ shift
34
+ ;;
35
+ *) # no more options. Stop while loop
36
+ break
37
+ ;;
38
+ esac
39
+ done
40
+
41
+ rm capistrano-demonz-*.gem
42
+ gem build capistrano-demonz.gemspec
43
+ VERSION=`ls capistrano-demonz-*.gem | sed 's/[^0-9.]*\([0-9.]*\).*/\1/'`
44
+ VERSION=${VERSION%?}
45
+ gem install "capistrano-demonz-$VERSION.gem"
46
+ if [[ $push == true ]]; then
47
+ gem push "capistrano-demonz-$VERSION.gem"
48
+ fi
data/lib/demonz/drupal.rb CHANGED
@@ -260,7 +260,7 @@ configuration.load do
260
260
  if remote_file_exists?(update_script_file)
261
261
  # Make sure script is executable.
262
262
  run "#{try_sudo} chmod go+x #{update_script_file}"
263
- run "cd #{latest_release} && #{update_script_file}"
263
+ run "cd #{latest_release} && #{try_sudo} #{update_script_file}"
264
264
  end
265
265
  end
266
266
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Demonz
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
5
5
  end
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.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railsless-deploy
@@ -51,10 +51,12 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - CHANGELOG.md
54
55
  - Gemfile
55
56
  - LICENSE.txt
56
57
  - README.md
57
58
  - Rakefile
59
+ - build.sh
58
60
  - capistrano-demonz.gemspec
59
61
  - lib/capistrano-demonz.rb
60
62
  - lib/demonz/base.rb