capistrano-drupal 0.1.4 → 0.1.5

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 CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -1,30 +1,28 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-drupal}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kim Pepper"]
12
- s.date = %q{2011-10-26}
12
+ s.date = %q{2012-01-25}
13
13
  s.description = %q{A set of tasks for deploying Drupal projects with Capistrano. Includes tasks for configuring apache and mysql}
14
14
  s.email = %q{kim@previousnext.com.au}
15
15
  s.extra_rdoc_files = [
16
16
  "README.markdown"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "README.markdown",
21
- "Rakefile",
22
- "VERSION",
23
- "capistrano-drupal.gemspec",
24
- "lib/capistrano-drupal.rb"
19
+ "README.markdown",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "capistrano-drupal.gemspec",
23
+ "lib/capistrano-drupal.rb"
25
24
  ]
26
25
  s.homepage = %q{http://github.com/previousnext/capistrano-drupal/}
27
- s.rdoc_options = ["--charset=UTF-8"]
28
26
  s.require_paths = ["lib"]
29
27
  s.rubygems_version = %q{1.3.6}
30
28
  s.summary = %q{A set of tasks for deploying Drupal projects with Capistrano}
@@ -17,27 +17,15 @@ Capistrano::Configuration.instance(:must_exist).load do
17
17
  set(:deploy_to) { "/var/www/#{application}" }
18
18
  set :shared_children, ['files', 'private']
19
19
 
20
- set(:db_root_password) {
21
- Capistrano::CLI.ui.ask("MySQL root password:")
22
- }
23
-
24
- set(:db_username) {
25
- Capistrano::CLI.ui.ask("MySQL username:")
26
- }
27
-
28
- set(:db_password) {
29
- Capistrano::CLI.ui.ask("MySQL password:")
30
- }
31
-
32
-
33
20
  after "deploy:setup", "drush:createdb"
34
21
  after "deploy:setup", "drush:init_settings"
35
22
  before "drush:updatedb", "drush:backupdb"
23
+ after "drupal:symlink_shared", "drush:site_offline"
36
24
  after "deploy:symlink", "drupal:symlink_shared"
37
25
  after "deploy:symlink", "drush:updatedb"
38
26
  after "deploy:symlink", "drush:cache_clear"
27
+ after "deploy:symlink", "drush:site_online"
39
28
  after "deploy:symlink", "git:push_deploy_tag"
40
- after "deploy:cleanup", "git:cleanup_deploy_tag"
41
29
 
42
30
  namespace :deploy do
43
31
  desc <<-DESC
@@ -104,6 +92,16 @@ Capistrano::Configuration.instance(:must_exist).load do
104
92
  task :cache_clear, :on_error => :continue do
105
93
  run "drush -r #{app_path} cc all"
106
94
  end
95
+
96
+ desc "Set the site offline"
97
+ task :site_offline do
98
+ run "drush -r #{app_path} vset site_offline 1 -y"
99
+ end
100
+
101
+ desc "Set the site online"
102
+ task :site_online do
103
+ run "drush -r #{app_path} vset site_offline 0 -y"
104
+ end
107
105
 
108
106
  end
109
107
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kim Pepper
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-10-26 00:00:00 +11:00
17
+ date: 2012-01-25 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies: []
20
20