capistrano-ash 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-ash}
8
- s.version = "1.0.0"
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-17}
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/zend_doctrine.rb"
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"]
@@ -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<<-CMD
36
- rm -Rf #{shared_path}/log &&
37
- rm -Rf #{shared_path}/pids &&
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<<-CMD
17
- rm -Rf #{shared_path}/log &&
18
- rm -Rf #{shared_path}/pids &&
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|
@@ -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<<-CMD
31
- rm -Rf #{shared_path}/log &&
32
- rm -Rf #{shared_path}/pids &&
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<<-CMD
38
- mkdir -p #{shared_path}/uploads &&
39
- mkdir -p #{shared_path}/cache
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<<-CMD
49
- rm -Rf #{latest_release}/#{uploads_path} &&
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<<-CMD
55
- rm -Rf #{latest_release}/license.txt &&
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<<-CMD
68
- ln -nfs #{shared_path}/uploads #{current_release}/#{uploads_path} &&
69
- ln -nfs #{shared_path}/cache #{current_release}/wp-content/cache &&
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<<-CMD
17
- rm -Rf #{shared_path}/log &&
18
- rm -Rf #{shared_path}/pids &&
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<<-CMD
24
- mkdir -p #{shared_path}/uploads &&
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}/*"
@@ -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<<-CMD
26
- mkdir -p #{shared_path}/var &&
27
- mkdir -p #{shared_path}/var/logs &&
28
- mkdir -p #{shared_path}/var/cache &&
29
- mkdir -p #{shared_path}/var/sessions &&
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<<-CMD
47
- ln -nfs #{shared_path}/var #{current_release}/var &&
48
- ln -nfs #{shared_path}/system #{current_release}/public/system &&
49
- mv #{current_release}/application/configs/application.ini.dist #{current_release}/application/configs/application.ini &&
50
- ln -nfs #{current_release}/application/Application.#{stage}.php #{current_release}/application/Application.php &&
51
- mv #{current_release}/public/htaccess.#{stage} #{current_release}/public/.htaccess &&
52
- cp #{current_release}/scripts/doctrine-cli.#{stage} #{current_release}/scripts/doctrine-cli
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<<-CMD
59
- rm -f #{current_release}/scripts/doctrine-cli.dist &&
60
- rm -f #{current_release}/scripts/doctrine-cli.staging &&
61
- rm -f #{current_release}/scripts/doctrine-cli.production &&
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<<-CMD
19
- mkdir -p #{shared_path}/var &&
20
- mkdir -p #{shared_path}/var/logs &&
21
- mkdir -p #{shared_path}/var/cache &&
22
- mkdir -p #{shared_path}/var/sessions &&
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capistrano-ash
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.0
5
+ version: 1.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - August Ash