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 +1 -1
- data/Rakefile +6 -6
- data/VERSION +1 -1
- data/drupal-cap.gemspec +1 -1
- data/lib/drupal-cap.rb +9 -0
- metadata +2 -2
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
begin
|
2
2
|
require 'jeweler'
|
3
3
|
Jeweler::Tasks.new do |gemspec|
|
4
|
-
gemspec.name = "
|
5
|
-
gemspec.summary = "
|
6
|
-
gemspec.description = "A set of tasks for deploying Drupal projects with Capistrano. Includes tasks for
|
7
|
-
gemspec.email = "
|
8
|
-
gemspec.homepage = "
|
9
|
-
gemspec.authors = ["
|
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.
|
1
|
+
0.1.11
|
data/drupal-cap.gemspec
CHANGED
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.
|
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-
|
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
|