capistrano-ash 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.textile +4 -0
- data/VERSION +1 -1
- data/capistrano-ash.gemspec +5 -5
- data/lib/ash/drupal.rb +20 -19
- metadata +29 -19
data/CHANGELOG.rdoc
CHANGED
data/README.textile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.13
|
data/capistrano-ash.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{capistrano-ash}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-
|
11
|
+
s.authors = ["August Ash"]
|
12
|
+
s.date = %q{2011-06-29}
|
13
13
|
s.description = %q{August Ash recipes for Capistrano}
|
14
14
|
s.email = %q{code@augustash.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,8 +33,8 @@ Gem::Specification.new do |s|
|
|
33
33
|
"lib/ash/zend_doctrine_shared_hosting.rb"
|
34
34
|
]
|
35
35
|
s.homepage = %q{https://github.com/augustash/capistrano-ash}
|
36
|
-
s.require_paths = [
|
37
|
-
s.rubygems_version = %q{1.
|
36
|
+
s.require_paths = ["lib"]
|
37
|
+
s.rubygems_version = %q{1.6.1}
|
38
38
|
s.summary = %q{Useful task libraries for August Ash recipes for Capistrano}
|
39
39
|
|
40
40
|
if s.respond_to? :specification_version then
|
data/lib/ash/drupal.rb
CHANGED
@@ -118,7 +118,7 @@ configuration.load do
|
|
118
118
|
run "ln -nfs #{shared_path}/#{url}/files #{latest_release}/sites/#{url}/files"
|
119
119
|
run "#{drush_bin} -l #{url} -r #{current_path} vset --yes file_directory_path sites/#{url}/files"
|
120
120
|
end
|
121
|
-
|
121
|
+
end
|
122
122
|
|
123
123
|
desc <<-DESC
|
124
124
|
Symlinks the appropriate environment's settings file within the proper sites directory
|
@@ -128,31 +128,31 @@ configuration.load do
|
|
128
128
|
settings.php.<environment> => deprecated
|
129
129
|
DESC
|
130
130
|
task :symlink_config_file, :roles => :web, :except => { :no_release => true} do
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
131
|
+
multisites.each_pair do |folder, url|
|
132
|
+
drupal_app_site_dir = " #{latest_release}/sites/#{url}"
|
133
|
+
|
134
|
+
case true
|
135
|
+
when remote_file_exists?("#{drupal_app_site_dir}/settings.#{stage}.php")
|
136
|
+
run "ln -nfs #{drupal_app_site_dir}/settings.#{stage}.php #{drupal_app_site_dir}/settings.php"
|
137
|
+
when remote_file_exists?("#{drupal_app_site_dir}/settings.php.#{stage}")
|
138
|
+
run "ln -nfs #{drupal_app_site_dir}/settings.php.#{stage} #{drupal_app_site_dir}/settings.php"
|
139
|
+
else
|
140
|
+
logger.important "Failed to symlink the settings.php file in #{drupal_app_site_dir} because an unknown pattern was used"
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
144
|
|
145
145
|
desc "Replace local database paths with remote paths"
|
146
146
|
task :updatedb, :roles => :web, :except => { :no_release => true } do
|
147
|
-
|
147
|
+
multisites.each_pair do |folder, url|
|
148
148
|
run "#{drush_bin} -l #{url} -r #{current_path} sqlq \"UPDATE {files} SET filepath = REPLACE(filepath,'sites/#{folder}/files','sites/#{url}/files');\""
|
149
|
-
|
150
|
-
|
149
|
+
end
|
150
|
+
end
|
151
151
|
|
152
152
|
desc "Clear all Drupal cache"
|
153
153
|
task :clearcache, :roles => :web, :except => { :no_release => true } do
|
154
154
|
multisites.each_pair do |folder, url|
|
155
|
-
|
155
|
+
run "#{drush_bin} -l #{url} -r #{current_path} cache-clear all"
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
@@ -253,5 +253,6 @@ configuration.load do
|
|
253
253
|
end
|
254
254
|
end
|
255
255
|
|
256
|
+
end
|
256
257
|
end
|
257
|
-
end
|
258
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,28 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-ash
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.12
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 1.1.13
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- August Ash
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
12
|
+
|
13
|
+
date: 2011-09-29 00:00:00 -05:00
|
14
|
+
default_executable:
|
13
15
|
dependencies: []
|
16
|
+
|
14
17
|
description: August Ash recipes for Capistrano
|
15
18
|
email: code@augustash.com
|
16
19
|
executables: []
|
20
|
+
|
17
21
|
extensions: []
|
18
|
-
|
22
|
+
|
23
|
+
extra_rdoc_files:
|
19
24
|
- README.textile
|
20
|
-
files:
|
25
|
+
files:
|
21
26
|
- CHANGELOG.rdoc
|
22
27
|
- README.textile
|
23
28
|
- Rakefile
|
@@ -33,28 +38,33 @@ files:
|
|
33
38
|
- lib/ash/wordpress_shared_hosting.rb
|
34
39
|
- lib/ash/zend_doctrine.rb
|
35
40
|
- lib/ash/zend_doctrine_shared_hosting.rb
|
41
|
+
has_rdoc: true
|
36
42
|
homepage: https://github.com/augustash/capistrano-ash
|
37
43
|
licenses: []
|
44
|
+
|
38
45
|
post_install_message:
|
39
46
|
rdoc_options: []
|
40
|
-
|
47
|
+
|
48
|
+
require_paths:
|
41
49
|
- lib
|
42
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
51
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: "0"
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
57
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version:
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: "0"
|
54
62
|
requirements: []
|
63
|
+
|
55
64
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.
|
65
|
+
rubygems_version: 1.6.2
|
57
66
|
signing_key:
|
58
67
|
specification_version: 3
|
59
68
|
summary: Useful task libraries for August Ash recipes for Capistrano
|
60
69
|
test_files: []
|
70
|
+
|