pave 0.6.3 → 0.6.4
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/lib/pave/database.rb +5 -5
- 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: ba7c4a95685fe11a5ecd917e71db50bf239545e5
|
4
|
+
data.tar.gz: a4b928066b61b5b5afa3fa373da990593f7ca65c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ef942ad343ed8d4b48786e4540d3138ed0ce55720891573a67b462e3b368ed16a1f9f5296213ec186ba453b51f37fcd3913812dc076844647eb44feb37ef73
|
7
|
+
data.tar.gz: 513f87a8a9baed462e55457bb22cb08a221698b6e8f811e1d722a5e1681d4dc0fea55bf5348f4afed2226fb94166a4c0ed27ee544aa4ea84a39955c0dc193baf
|
data/lib/pave/database.rb
CHANGED
@@ -81,21 +81,21 @@ module Pave
|
|
81
81
|
|
82
82
|
def upload(remote="live")
|
83
83
|
# Upload the project's local database dump to remotes db directory.
|
84
|
-
say "Uploading ./db/#{dump_file(:local)} SQL dump to #{remote_url}/db/#{dump_file(:
|
85
|
-
sh "scp ./db/#{dump_file(:local)} #{remote_url}/db/#{dump_file(:
|
84
|
+
say "Uploading ./db/#{dump_file(:local)} SQL dump to #{remote_url}/db/#{dump_file(:local)}"
|
85
|
+
sh "scp ./db/#{dump_file(:local)} #{remote_url}/db/#{dump_file(:local)}"
|
86
86
|
end
|
87
87
|
|
88
88
|
def download(remote="live")
|
89
89
|
# Download the project's live database dump to local db directory.
|
90
|
-
say "Downloading SQL dump from #{remote_url}/db/#{dump_file(:remote)} to ./db/#{dump_file(:
|
91
|
-
sh "scp #{remote_url}/db/#{dump_file(:remote)} ./db/#{dump_file(:
|
90
|
+
say "Downloading SQL dump from #{remote_url}/db/#{dump_file(:remote)} to ./db/#{dump_file(:remote)}"
|
91
|
+
sh "scp #{remote_url}/db/#{dump_file(:remote)} ./db/#{dump_file(:remote)}"
|
92
92
|
end
|
93
93
|
|
94
94
|
def push(remote="live")
|
95
95
|
# Upload the project's local database and replace the live database.
|
96
|
-
dump
|
97
96
|
dump_remote(remote) # for backup purposes
|
98
97
|
download(remote)
|
98
|
+
dump
|
99
99
|
upload(remote)
|
100
100
|
execute_remote(remote)
|
101
101
|
end
|
data/lib/pave/version.rb
CHANGED