capistrano-ash 1.1.12 → 1.1.13

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.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.13
2
+ * FIXED: syntax error in lib/ash/drupal.rb
3
+ * cleaned up some mis-indented lines in lib/ash/drupal.rb
4
+
1
5
  == 1.1.12
2
6
  * Applied dficker's proposed patch for issue #11
3
7
  * Added the `remote_dir_exists?` method to the `lib/ash/common.rb`
data/README.textile CHANGED
@@ -1,3 +1,7 @@
1
+ h2. Installation
2
+
3
+ <pre><code>gem install capistrano-ash</code></pre>
4
+
1
5
  h2. Overview
2
6
 
3
7
  Run the following commands in the command line from the project's root directory
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.12
1
+ 1.1.13
@@ -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.12"
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 = [%q{August Ash}]
12
- s.date = %q{2011-09-26}
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 = [%q{lib}]
37
- s.rubygems_version = %q{1.8.6}
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
- end
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
- 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
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
- multisites.each_pair do |folder, url|
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
- end
150
- end
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
- run "#{drush_bin} -l #{url} -r #{current_path} cache-clear all"
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
- date: 2011-09-27 00:00:00.000000000Z
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
- extra_rdoc_files:
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
- require_paths:
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: '0'
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: '0'
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
54
62
  requirements: []
63
+
55
64
  rubyforge_project:
56
- rubygems_version: 1.8.6
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
+