capistrano-wordpress 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-wordpress}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brandon Martinez"]
@@ -42,24 +42,23 @@ Capistrano::Configuration.instance(:must_exist).load do
42
42
  _cset(:domain) { abort "Please specify your domain name for deployment: set :domain, 'yourdomain.com'" }
43
43
 
44
44
  # Application/Theme details
45
- _cset (:application) { domain }
45
+ set :application, domain
46
46
  _cset (:theme_name) { abort "Please specify a theme name (no spaces, please): set :theme_name, 'themename'" }
47
- _cset (:current_dir) { theme_name}
48
-
49
- # SCM settings
50
- set :appdir, "/home/#{user}/deployments/#{application}"
51
- set :scm, 'git'
52
- set :scm_verbose, true
53
- set :local_repository, "ssh://#{user}@#{domain}/~/git/#{application}.git"
54
- set :repository, "/home/#{user}/git/#{application}.git"
55
- set :branch, 'master'
56
- #set :deploy_via, 'remote_cache'
57
- set :git_shallow_clone, 1
58
- set :deploy_to, "/home/#{user}/#{domain}/wp-content/themes/"
59
- set :releases_path, "/home/#{user}/cap/#{domain}/releases/"
60
- set :shared_path, "/home/#{user}/cap/#{domain}/shared/"
61
- set :use_sudo, false
62
- set :keep_releases, 100
47
+ set :current_dir, theme_name
48
+
49
+ # SCM settings
50
+ set :appdir, "/home/#{user}/deployments/#{application}"
51
+ set :scm, 'git'
52
+ set :scm_verbose, true
53
+ set :local_repository, "ssh://#{user}@#{domain}/~/git/#{application}.git"
54
+ set :repository, "/home/#{user}/git/#{application}.git"
55
+ set :branch, 'master'
56
+ set :git_shallow_clone, 1
57
+ set :deploy_to, "/home/#{user}/#{domain}/wp-content/themes/"
58
+ set :releases_path, "/home/#{user}/cap/#{domain}/releases/"
59
+ set :shared_path, "/home/#{user}/cap/#{domain}/shared/"
60
+ set :use_sudo, false
61
+ set :keep_releases, 100
63
62
 
64
63
  # Git settings for capistrano
65
64
  default_run_options[:pty] = true # needed for git password prompts
@@ -71,13 +70,6 @@ Capistrano::Configuration.instance(:must_exist).load do
71
70
 
72
71
  namespace :deploy do
73
72
 
74
- # Remove normal "rails" tasks; not needed for WP
75
- # [:setup, :update, :update_code, :finalize_update, :symlink, :restart].each do |default_task|
76
- # task default_task do
77
- # # ... ahh, silence!
78
- # end
79
- # end
80
-
81
73
  desc "A macro-task that updates the code and fixes the symlink."
82
74
  task :default do
83
75
  transaction do
@@ -94,7 +86,7 @@ Capistrano::Configuration.instance(:must_exist).load do
94
86
  desc "Remove the WordPress cache and killall php5 instances"
95
87
  task :after_deploy do
96
88
  cleanup
97
- run "rm -rf ~/#{domain}/wp-content/cache/"
89
+ run "rm -rf /home/#{user}/#{domain}/wp-content/cache/"
98
90
  run "killall php5.cgi"
99
91
  run "killall php5.cgi"
100
92
  run "killall php5.cgi"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brandon Martinez