capistrano-ash 0.0.16 → 0.0.17
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 +4 -0
- data/VERSION +1 -1
- data/capistrano-ash.gemspec +2 -2
- data/lib/ash/wordpress.rb +8 -3
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.17
|
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 = "0.0.
|
8
|
+
s.version = "0.0.17"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["August Ash"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-29}
|
13
13
|
s.description = %q{August Ash recipes for Capistrano}
|
14
14
|
s.email = %q{jake@augustash.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/ash/wordpress.rb
CHANGED
@@ -6,6 +6,11 @@ configuration = Capistrano::Configuration.respond_to?(:instance) ?
|
|
6
6
|
Capistrano.configuration(:must_exist)
|
7
7
|
|
8
8
|
configuration.load do
|
9
|
+
|
10
|
+
# --------------------------------------------
|
11
|
+
# Setting defaults
|
12
|
+
# --------------------------------------------
|
13
|
+
set :uploads_dir, "wp-content/uploads"
|
9
14
|
|
10
15
|
# --------------------------------------------
|
11
16
|
# Calling our Methods
|
@@ -36,7 +41,7 @@ namespace :deploy do
|
|
36
41
|
desc "[internal] Touches up the released code. This is called by update_code after the basic deploy finishes."
|
37
42
|
task :finalize_update, :except => { :no_release => true } do
|
38
43
|
# remove shared directories
|
39
|
-
run "rm -Rf #{latest_release}
|
44
|
+
run "rm -Rf #{latest_release}/#{uploads_dir}"
|
40
45
|
run "rm -Rf #{latest_release}/wp-content/cache"
|
41
46
|
# Removing cruft files.
|
42
47
|
run "rm -Rf #{latest_release}/license.txt"
|
@@ -50,9 +55,9 @@ end
|
|
50
55
|
namespace :wordpress do
|
51
56
|
desc "Links the correct settings file"
|
52
57
|
task :symlink do
|
53
|
-
run "ln -nfs #{shared_path}/uploads #{current_release}
|
58
|
+
run "ln -nfs #{shared_path}/uploads #{current_release}/#{uploads_dir}"
|
54
59
|
run "ln -nfs #{shared_path}/cache #{current_release}/wp-content/cache"
|
55
|
-
run "ln -nfs #{latest_release}/wp-config.php #{latest_release}/wp-config.php
|
60
|
+
run "ln -nfs #{latest_release}/wp-config.php.#{stage} #{latest_release}/wp-config.php"
|
56
61
|
end
|
57
62
|
|
58
63
|
desc "Set URL in database"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 17
|
9
|
+
version: 0.0.17
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- August Ash
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-29 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|