pave 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pave/database.rb +3 -1
- data/lib/pave/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a5c2d2e64e4787c6042e9eeb6693120a9c5a9e
|
4
|
+
data.tar.gz: 0de3d06343bee122201917ffc183900789318e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8033886218797ad4dc7378bece484cbbe7fe374308bbf2ba76cd35bfdbdb9090ee29785582a6e7d4c422d6993cc0ae03c9173fc245e33555bf58eb60d58086
|
7
|
+
data.tar.gz: 69e061fdc309f8acdd403c869fe7bf9a7997a2e3cd6b6198704fc17dbfdee5e93ee35bd3aa83f16b24fbe95445e24b44f0c01a56b92ea460a01cf34e08d8f2db
|
data/lib/pave/database.rb
CHANGED
@@ -43,7 +43,8 @@ module Pave
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def dump_file(which_db)
|
46
|
-
|
46
|
+
@dump_file_name ||= {}
|
47
|
+
@dump_file_name[which_db] ||= "#{Time.now.strftime("%Y-%m-%d_%H-%M-%S")}-#{name}-#{which_db}.sql.gz"
|
47
48
|
end
|
48
49
|
|
49
50
|
def dump
|
@@ -94,6 +95,7 @@ module Pave
|
|
94
95
|
# Upload the project's local database and replace the live database.
|
95
96
|
dump
|
96
97
|
dump_remote(remote) # for backup purposes
|
98
|
+
download(remote)
|
97
99
|
upload(remote)
|
98
100
|
execute_remote(remote)
|
99
101
|
end
|
data/lib/pave/version.rb
CHANGED