drupal-cap 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -6,7 +6,7 @@ Credit goes to railsless-deploy for many ideas here.
6
6
 
7
7
  ## Installation
8
8
 
9
- # gem install cap-drupal
9
+ # gem install drupal-cap
10
10
 
11
11
  ## Usage
12
12
 
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  begin
2
2
  require 'jeweler'
3
3
  Jeweler::Tasks.new do |gemspec|
4
- gemspec.name = "capistrano-drupal"
5
- gemspec.summary = "A set of tasks for deploying Drupal projects with Capistrano"
6
- gemspec.description = "A set of tasks for deploying Drupal projects with Capistrano. Includes tasks for configuring apache and mysql"
7
- gemspec.email = "kim@previousnext.com.au"
8
- gemspec.homepage = "http://github.com/previousnext/capistrano-drupal/"
9
- gemspec.authors = ["Kim Pepper"]
4
+ gemspec.name = "drupal-cap"
5
+ gemspec.summary = "This gem provides a number of tasks which are useful for deploying Drupal projects."
6
+ gemspec.description = "A set of tasks for deploying Drupal projects with Capistrano. Includes tasks for importing and exporting local and server databases"
7
+ gemspec.email = "sandor@czettner.hi"
8
+ gemspec.homepage = "https://github.com/czettnersandor/capistrano-drupal"
9
+ gemspec.authors = ["Sandor Czettner"]
10
10
  end
11
11
  rescue LoadError
12
12
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
data/drupal-cap.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'drupal-cap'
3
- s.version = '0.1.10'
3
+ s.version = '0.1.11'
4
4
  s.summary = "Capistrano tasks for Drupal"
5
5
  s.description = "Capistrano task collection for Drupal development"
6
6
  s.authors = ["Sandor Czettner"]
data/lib/drupal-cap.rb CHANGED
@@ -96,6 +96,15 @@ Capistrano::Configuration.instance(:must_exist).load do
96
96
  end
97
97
 
98
98
  end
99
+
100
+ desc "Copy server database to local"
101
+ task :copy_server do
102
+ run "#{drush_cmd} -r #{latest_release} sql-dump > #{latest_release}/sqldump-capistrano-drupal.sql"
103
+ get "#{latest_release}/sqldump-capistrano-drupal.sql", "sqldump-capistrano-drupal.sql"
104
+ run "rm #{latest_release}/sqldump-capistrano-drupal.sql"
105
+ sql = %x[`/usr/bin/drush sql-connect` < sqldump-capistrano-drupal.sql]; success = $?.success?
106
+ end
107
+
99
108
  end
100
109
 
101
110
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupal-cap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-01 00:00:00.000000000 Z
12
+ date: 2013-05-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capistrano task collection for Drupal development
15
15
  email: sandor@czettner.hu