capistrano-drupal 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-drupal}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.4"
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{2010-08-31}
12
+ s.date = %q{2011-10-26}
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 = [
@@ -26,14 +26,14 @@ Gem::Specification.new do |s|
26
26
  s.homepage = %q{http://github.com/previousnext/capistrano-drupal/}
27
27
  s.rdoc_options = ["--charset=UTF-8"]
28
28
  s.require_paths = ["lib"]
29
- s.rubygems_version = %q{1.3.7}
29
+ s.rubygems_version = %q{1.3.6}
30
30
  s.summary = %q{A set of tasks for deploying Drupal projects with Capistrano}
31
31
 
32
32
  if s.respond_to? :specification_version then
33
33
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
34
34
  s.specification_version = 3
35
35
 
36
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
36
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
37
37
  else
38
38
  end
39
39
  else
@@ -78,34 +78,21 @@ Capistrano::Configuration.instance(:must_exist).load do
78
78
  user = `git config --get user.name`
79
79
  email = `git config --get user.email`
80
80
  tag = "release_#{release_name}"
81
+ if exists?(:stage)
82
+ tag = "#{stage}_#{tag}"
83
+ end
81
84
  puts `git tag #{tag} #{revision} -m "Deployed by #{user} <#{email}>"`
82
85
  puts `git push origin tag #{tag}`
83
86
  end
84
87
 
85
- desc "Place release tag into Git and push it to server."
86
- task :cleanup_deploy_tag do
87
- count = fetch(:keep_releases, 5).to_i
88
- if count >= releases.length
89
- logger.important "no old release tags to clean up"
90
- else
91
- logger.info "keeping #{count} of #{releases.length} release tags"
92
-
93
- tags = (releases - releases.last(count)).map { |release| "release_#{release}" }
94
-
95
- tags.each do |tag|
96
- `git tag -d #{tag}`
97
- `git push origin :refs/tags/#{tag}`
98
- end
99
- end
100
- end
101
- end
88
+ end
102
89
 
103
90
  namespace :drush do
104
91
 
105
92
  desc "Backup the database"
106
93
  task :backupdb, :on_error => :continue do
107
94
  t = Time.now.utc.strftime("%Y-%m-%dT%H-%M-%S")
108
- run "drush -r #{app_path} bam backup --allow-spaces-in-commands"
95
+ run "drush -r #{app_path} bam-backup"
109
96
  end
110
97
 
111
98
  desc "Run Drupal database migrations if required"
@@ -118,18 +105,6 @@ Capistrano::Configuration.instance(:must_exist).load do
118
105
  run "drush -r #{app_path} cc all"
119
106
  end
120
107
 
121
- desc "Create the database"
122
- task :createdb, :on_error => :continue do
123
- run "mysqladmin -uroot -p#{db_root_password} create #{app_name}"
124
- run "mysql -uroot -p#{db_root_password} #{app_name} -e \"grant all on #{app_name}.* to '#{db_username}'@'localhost' identified by '#{db_password}'\""
125
- end
126
-
127
- desc "Initialise settings.php"
128
- task :init_settings do
129
- upload "pressflow/sites/default/default.settings.php", "#{shared_path}/settings.php"
130
- run "chmod 664 #{shared_path}/settings.php"
131
- end
132
-
133
108
  end
134
109
 
135
110
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
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-01-07 00:00:00 +11:00
17
+ date: 2011-10-26 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies: []
20
20