porter 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/porter.rake +6 -1
- data/porter.gemspec +2 -2
- metadata +4 -4
data/lib/tasks/porter.rake
CHANGED
@@ -45,7 +45,12 @@ namespace :porter do
|
|
45
45
|
|
46
46
|
puts "Restoring database from backup..."
|
47
47
|
mysql_version = `which mysql`.empty? ? 'mysql5' : 'mysql'
|
48
|
-
|
48
|
+
cmd = [mysql_version]
|
49
|
+
cmd << "-u #{dest_db['username']}"
|
50
|
+
cmd << "--password=#{dest_db['password']}" unless dest_db['password'].blank?
|
51
|
+
cmd << dest_db['database']
|
52
|
+
cmd << "< #{root}/#{src_db['database']}.sql"
|
53
|
+
system cmd.join(' ') # Run the mysql import
|
49
54
|
|
50
55
|
puts "Removing database backup file..."
|
51
56
|
system "rm #{root}/#{src_db['database']}.sql"
|
data/porter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{porter}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kenny Johnston", "Robert Bousquet"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-25}
|
13
13
|
s.description = %q{Capistrano and Rake tasks for cloning production database and assets to development.}
|
14
14
|
s.email = %q{info@appcreations.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: porter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kenny Johnston
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-08-25 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|