capistrano-db-pull 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/capistrano-db-pull.gemspec +1 -1
- data/lib/capistrano/tasks/db-pull.rake +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f57f383fdbcb28d364b2a63d30a3b7c5961facb21fd211780f3caf959652ae8f
|
|
4
|
+
data.tar.gz: af93b4074ca1f5d5bba9805b460363fb16c8e716f38372babe59dadc6d073ff8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e94196816abec85b1f520d16f55c9b66ca9c9c4dcee73c013c9e2b171e34bc45b993c0657f971735cf4b902422a6cde3b014e23ad4dab55c4cc5d0b655d8ea9
|
|
7
|
+
data.tar.gz: bc90814dc4802b7b149fa134cefbe5442a073e0ed23624b8e16c575555ee7bf5722918e84ac4353e44eb32c28eab4e242e06bab88d37225059473650878d7efb
|
data/capistrano-db-pull.gemspec
CHANGED
|
@@ -8,9 +8,13 @@ namespace :db do
|
|
|
8
8
|
if remote.postgresql? && local.postgresql?
|
|
9
9
|
execute "pg_dump --no-owner #{remote.database} | gzip -9 > #{fetch(:application)}.sql.gz"
|
|
10
10
|
elsif remote.postgresql? && local.sqlite3?
|
|
11
|
-
|
|
11
|
+
command = 'pg_dump --data-only --exclude-table=schema_migrations --column-inserts '
|
|
12
|
+
command += "#{remote.database} | gzip -9 > #{fetch(:application)}.sql.gz"
|
|
13
|
+
execute command
|
|
12
14
|
elsif remote.mysql?
|
|
13
|
-
|
|
15
|
+
command = 'mysqldump --skip-lock-tables --routines --triggers --events '
|
|
16
|
+
command += "#{remote.database} | gzip -9 > #{fetch(:application)}.sql.gz"
|
|
17
|
+
execute command
|
|
14
18
|
else
|
|
15
19
|
raise "Remote database adapter '#{remote.adapter}' is currently unsupported"
|
|
16
20
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-db-pull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Frank Groeneveld
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|