capistrano-ash 1.1.0 → 1.1.1
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/capistrano-ash.gemspec +6 -3
- data/lib/ash/drupal.rb +3 -5
- data/lib/ash/drupal_shared_hosting.rb +3 -5
- data/lib/ash/wordpress.rb +13 -21
- data/lib/ash/wordpress_shared_hosting.rb +5 -9
- data/lib/ash/zend_doctrine.rb +16 -21
- data/lib/ash/zend_doctrine_shared_hosting.rb +5 -7
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
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.
|
8
|
+
s.version = "1.1.0"
|
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{2011-05-
|
12
|
+
s.date = %q{2011-05-19}
|
13
13
|
s.description = %q{August Ash recipes for Capistrano}
|
14
14
|
s.email = %q{jake@augustash.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,10 +24,13 @@ Gem::Specification.new do |s|
|
|
24
24
|
"lib/ash/base.rb",
|
25
25
|
"lib/ash/common.rb",
|
26
26
|
"lib/ash/drupal.rb",
|
27
|
+
"lib/ash/drupal_shared_hosting.rb",
|
27
28
|
"lib/ash/hosted_magento.rb",
|
28
29
|
"lib/ash/magento.rb",
|
29
30
|
"lib/ash/wordpress.rb",
|
30
|
-
"lib/ash/
|
31
|
+
"lib/ash/wordpress_shared_hosting.rb",
|
32
|
+
"lib/ash/zend_doctrine.rb",
|
33
|
+
"lib/ash/zend_doctrine_shared_hosting.rb"
|
31
34
|
]
|
32
35
|
s.homepage = %q{https://github.com/augustash/capistrano-ash}
|
33
36
|
s.require_paths = ["lib"]
|
data/lib/ash/drupal.rb
CHANGED
@@ -32,11 +32,9 @@ configuration.load do
|
|
32
32
|
desc "Setup shared application directories and permissions after initial setup"
|
33
33
|
task :setup_shared, :roles => :web do
|
34
34
|
# remove Capistrano specific directories
|
35
|
-
run
|
36
|
-
|
37
|
-
|
38
|
-
rm -Rf #{shared_path}/system
|
39
|
-
CMD
|
35
|
+
run "rm -Rf #{shared_path}/log"
|
36
|
+
run "rm -Rf #{shared_path}/pids"
|
37
|
+
run "rm -Rf #{shared_path}/system"
|
40
38
|
|
41
39
|
# create shared directories
|
42
40
|
multisites.each_pair do |folder, url|
|
@@ -13,11 +13,9 @@ configuration.load do
|
|
13
13
|
desc "Setup shared application directories and permissions after initial setup"
|
14
14
|
task :setup_shared, :roles => :web do
|
15
15
|
# remove Capistrano specific directories
|
16
|
-
run
|
17
|
-
|
18
|
-
|
19
|
-
rm -Rf #{shared_path}/system
|
20
|
-
CMD
|
16
|
+
run "rm -Rf #{shared_path}/log"
|
17
|
+
run "rm -Rf #{shared_path}/pids"
|
18
|
+
run "rm -Rf #{shared_path}/system"
|
21
19
|
|
22
20
|
# create shared directories
|
23
21
|
multisites.each_pair do |folder, url|
|
data/lib/ash/wordpress.rb
CHANGED
@@ -27,17 +27,14 @@ namespace :deploy do
|
|
27
27
|
desc "Setup shared application directories and permissions after initial setup"
|
28
28
|
task :setup_shared, :roles => :web do
|
29
29
|
# remove Capistrano specific directories
|
30
|
-
run
|
31
|
-
|
32
|
-
|
33
|
-
rm -Rf #{shared_path}/system
|
34
|
-
CMD
|
30
|
+
run "rm -Rf #{shared_path}/log"
|
31
|
+
run "rm -Rf #{shared_path}/pids"
|
32
|
+
run "rm -Rf #{shared_path}/system"
|
35
33
|
|
36
34
|
# create shared directories
|
37
|
-
run
|
38
|
-
|
39
|
-
|
40
|
-
CMD
|
35
|
+
run "mkdir -p #{shared_path}/uploads"
|
36
|
+
run "mkdir -p #{shared_path}/cache"
|
37
|
+
|
41
38
|
# set correct permissions
|
42
39
|
run "chmod -R 777 #{shared_path}/*"
|
43
40
|
end
|
@@ -45,16 +42,12 @@ namespace :deploy do
|
|
45
42
|
desc "[internal] Touches up the released code. This is called by update_code after the basic deploy finishes."
|
46
43
|
task :finalize_update, :except => { :no_release => true } do
|
47
44
|
# remove shared directories
|
48
|
-
run
|
49
|
-
|
50
|
-
rm -Rf #{latest_release}/wp-content/cache
|
51
|
-
CMD
|
45
|
+
run "rm -Rf #{latest_release}/#{uploads_path}"
|
46
|
+
run "rm -Rf #{latest_release}/wp-content/cache"
|
52
47
|
|
53
48
|
# Removing cruft files.
|
54
|
-
run
|
55
|
-
|
56
|
-
rm -Rf #{latest_release}/readme.html
|
57
|
-
CMD
|
49
|
+
run "rm -Rf #{latest_release}/license.txt"
|
50
|
+
run "rm -Rf #{latest_release}/readme.html"
|
58
51
|
end
|
59
52
|
end
|
60
53
|
|
@@ -64,10 +57,9 @@ end
|
|
64
57
|
namespace :wordpress do
|
65
58
|
desc "Links the correct settings file"
|
66
59
|
task :symlink do
|
67
|
-
run
|
68
|
-
|
69
|
-
|
70
|
-
ln -nfs #{latest_release}/wp-config.php.#{stage} #{latest_release}/wp-config.php
|
60
|
+
run "ln -nfs #{shared_path}/uploads #{current_release}/#{uploads_path}"
|
61
|
+
run "ln -nfs #{shared_path}/cache #{current_release}/wp-content/cache"
|
62
|
+
run "ln -nfs #{latest_release}/wp-config.php.#{stage} #{latest_release}/wp-config.php"
|
71
63
|
CMD
|
72
64
|
end
|
73
65
|
|
@@ -13,17 +13,13 @@ configuration.load do
|
|
13
13
|
desc "Setup shared application directories and permissions after initial setup"
|
14
14
|
task :setup_shared, :roles => :web do
|
15
15
|
# remove Capistrano specific directories
|
16
|
-
run
|
17
|
-
|
18
|
-
|
19
|
-
rm -Rf #{shared_path}/system
|
20
|
-
CMD
|
16
|
+
run "rm -Rf #{shared_path}/log"
|
17
|
+
run "rm -Rf #{shared_path}/pids"
|
18
|
+
run "rm -Rf #{shared_path}/system"
|
21
19
|
|
22
20
|
# create shared directories
|
23
|
-
run
|
24
|
-
|
25
|
-
mkdir -p #{shared_path}/cache
|
26
|
-
CMD
|
21
|
+
run "mkdir -p #{shared_path}/uploads"
|
22
|
+
run "mkdir -p #{shared_path}/cache"
|
27
23
|
|
28
24
|
# set correct permissions
|
29
25
|
run "chmod -R 755 #{shared_path}/*"
|
data/lib/ash/zend_doctrine.rb
CHANGED
@@ -22,13 +22,11 @@ configuration.load do
|
|
22
22
|
namespace :deploy do
|
23
23
|
desc "Setup shared directories and permissions after initial setup"
|
24
24
|
task :setup_shared, :roles => :web, :except => { :no_release => true } do
|
25
|
-
run
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
mkdir -p #{shared_path}/system
|
31
|
-
CMD
|
25
|
+
run "mkdir -p #{shared_path}/var"
|
26
|
+
run "mkdir -p #{shared_path}/var/logs"
|
27
|
+
run "mkdir -p #{shared_path}/var/cache"
|
28
|
+
run "mkdir -p #{shared_path}/var/sessions"
|
29
|
+
run "mkdir -p #{shared_path}/system"
|
32
30
|
try_sudo "chmod -R 777 #{shared_path}/*"
|
33
31
|
end
|
34
32
|
|
@@ -43,24 +41,21 @@ configuration.load do
|
|
43
41
|
namespace :zend do
|
44
42
|
desc "Symlink shared directories"
|
45
43
|
task :symlink, :except => { :no_release => true } do
|
46
|
-
run
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
CMD
|
44
|
+
run "ln -nfs #{shared_path}/var #{current_release}/var"
|
45
|
+
run "ln -nfs #{shared_path}/system #{current_release}/public/system"
|
46
|
+
run "mv #{current_release}/application/configs/application.ini.dist #{current_release}/application/configs/application.ini"
|
47
|
+
run "ln -nfs #{current_release}/application/Application.#{stage}.php #{current_release}/application/Application.php"
|
48
|
+
run "mv #{current_release}/public/htaccess.#{stage} #{current_release}/public/.htaccess"
|
49
|
+
run "cp #{current_release}/scripts/doctrine-cli.#{stage} #{current_release}/scripts/doctrine-cli"
|
50
|
+
|
54
51
|
|
55
52
|
try_sudo "chmod +x #{current_release}/scripts/doctrine-cli"
|
56
53
|
|
57
54
|
# remove the example or other environment example files
|
58
|
-
run
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
rm -f #{current_release}/application/Application.example.php
|
63
|
-
CMD
|
55
|
+
run "rm -f #{current_release}/scripts/doctrine-cli.dist"
|
56
|
+
run "rm -f #{current_release}/scripts/doctrine-cli.staging"
|
57
|
+
run "rm -f #{current_release}/scripts/doctrine-cli.production"
|
58
|
+
run "rm -f #{current_release}/application/Application.example.php"
|
64
59
|
end
|
65
60
|
end
|
66
61
|
|
@@ -15,13 +15,11 @@ configuration.load do
|
|
15
15
|
for a shared hosting enviroment
|
16
16
|
DESC
|
17
17
|
task :setup_shared, :roles => :web, :except => { :no_release => true } do
|
18
|
-
run
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
mkdir -p #{shared_path}/system
|
24
|
-
CMD
|
18
|
+
run "mkdir -p #{shared_path}/var"
|
19
|
+
run "mkdir -p #{shared_path}/var/logs"
|
20
|
+
run "mkdir -p #{shared_path}/var/cache"
|
21
|
+
run "mkdir -p #{shared_path}/var/sessions"
|
22
|
+
run "mkdir -p #{shared_path}/system"
|
25
23
|
try_sudo "chmod -R 755 #{shared_path}/*"
|
26
24
|
end
|
27
25
|
end
|