capistrano-drupal 0.1.2 → 0.1.3
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/VERSION +1 -1
- data/lib/capistrano-drupal.rb +5 -3
- metadata +6 -12
- data/.gitignore +0 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/capistrano-drupal.rb
CHANGED
@@ -15,7 +15,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
15
15
|
set :runner_group, "www-data"
|
16
16
|
|
17
17
|
set(:deploy_to) { "/var/www/#{application}" }
|
18
|
-
set :shared_children, ['files']
|
18
|
+
set :shared_children, ['files', 'private']
|
19
19
|
|
20
20
|
set(:db_root_password) {
|
21
21
|
Capistrano::CLI.ui.ask("MySQL root password:")
|
@@ -55,7 +55,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
55
55
|
task :setup, :except => { :no_release => true } do
|
56
56
|
dirs = [deploy_to, releases_path, shared_path]
|
57
57
|
dirs += shared_children.map { |d| File.join(shared_path, d) }
|
58
|
-
run "#{try_sudo} mkdir -p #{dirs.join(' ')}
|
58
|
+
run "#{try_sudo} mkdir -p #{dirs.join(' ')}"
|
59
|
+
run "#{try_sudo} chown -R #{runner}:#{runner_group} #{dirs.join(' ')}"
|
60
|
+
run "#{try_sudo} chmod -R g+w #{dirs.join(' ')}"
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
@@ -63,7 +65,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
63
65
|
desc "Symlink settings and files to shared directory. This allows the settings.php and \
|
64
66
|
and sites/default/files directory to be correctly linked to the shared directory on a new deployment."
|
65
67
|
task :symlink_shared do
|
66
|
-
["files", "settings.php"].each do |asset|
|
68
|
+
["files", "private", "settings.php"].each do |asset|
|
67
69
|
run "rm -rf #{app_path}/#{asset} && ln -nfs #{shared_path}/#{asset} #{app_path}/sites/default/#{asset}"
|
68
70
|
end
|
69
71
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-drupal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 31
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Kim Pepper
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-01-07 00:00:00 +11:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -28,7 +27,6 @@ extensions: []
|
|
28
27
|
extra_rdoc_files:
|
29
28
|
- README.markdown
|
30
29
|
files:
|
31
|
-
- .gitignore
|
32
30
|
- README.markdown
|
33
31
|
- Rakefile
|
34
32
|
- VERSION
|
@@ -39,32 +37,28 @@ homepage: http://github.com/previousnext/capistrano-drupal/
|
|
39
37
|
licenses: []
|
40
38
|
|
41
39
|
post_install_message:
|
42
|
-
rdoc_options:
|
43
|
-
|
40
|
+
rdoc_options: []
|
41
|
+
|
44
42
|
require_paths:
|
45
43
|
- lib
|
46
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
45
|
requirements:
|
49
46
|
- - ">="
|
50
47
|
- !ruby/object:Gem::Version
|
51
|
-
hash: 3
|
52
48
|
segments:
|
53
49
|
- 0
|
54
50
|
version: "0"
|
55
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
52
|
requirements:
|
58
53
|
- - ">="
|
59
54
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 3
|
61
55
|
segments:
|
62
56
|
- 0
|
63
57
|
version: "0"
|
64
58
|
requirements: []
|
65
59
|
|
66
60
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.3.
|
61
|
+
rubygems_version: 1.3.6
|
68
62
|
signing_key:
|
69
63
|
specification_version: 3
|
70
64
|
summary: A set of tasks for deploying Drupal projects with Capistrano
|
data/.gitignore
DELETED