capistrano-drupal 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/capistrano-drupal.rb +8 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/lib/capistrano-drupal.rb
CHANGED
@@ -13,6 +13,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
13
13
|
_cset :branch, "master"
|
14
14
|
set :git_enable_submodules, true
|
15
15
|
set :runner_group, "www-data"
|
16
|
+
set :group_writable, false
|
16
17
|
|
17
18
|
set(:deploy_to) { "/var/www/#{application}" }
|
18
19
|
set :shared_children, ['files', 'private']
|
@@ -40,11 +41,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
40
41
|
will not destroy any deployed revisions or data.
|
41
42
|
DESC
|
42
43
|
task :setup, :except => { :no_release => true } do
|
43
|
-
dirs = [deploy_to, releases_path, shared_path]
|
44
|
-
|
45
|
-
run "#{try_sudo}
|
46
|
-
|
47
|
-
run "#{try_sudo} chmod -R g+w #{
|
44
|
+
dirs = [deploy_to, releases_path, shared_path].join(' ')
|
45
|
+
run "#{try_sudo} mkdir -p #{dirs}"
|
46
|
+
run "#{try_sudo} chown -R #{runner}:#{runner_group} #{dirs}"
|
47
|
+
sub_dirs = shared_children.map { |d| File.join(shared_path, d) }
|
48
|
+
run "#{try_sudo} chmod -R g+w #{sub_dirs.join(' ')}"
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
@@ -95,11 +96,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
95
96
|
desc "Set the site offline"
|
96
97
|
task :site_offline, :on_error => :continue do
|
97
98
|
run "drush -r #{app_path} vset site_offline 1 -y"
|
99
|
+
run "drush -r #{app_path} vset maintenance_mode 1 -y"
|
98
100
|
end
|
99
101
|
|
100
102
|
desc "Set the site online"
|
101
103
|
task :site_online, :on_error => :continue do
|
102
104
|
run "drush -r #{app_path} vset site_offline 0 -y"
|
105
|
+
run "drush -r #{app_path} vset maintenance_mode 0 -y"
|
103
106
|
end
|
104
107
|
|
105
108
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kim Pepper
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-06-01 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|