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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92bc7d3b71cb5170eff91764d6aec3371d4569bf
4
- data.tar.gz: a994335d36950a0e571481bf7c7d251ddde93ab2
3
+ metadata.gz: 52a5c2d2e64e4787c6042e9eeb6693120a9c5a9e
4
+ data.tar.gz: 0de3d06343bee122201917ffc183900789318e7c
5
5
  SHA512:
6
- metadata.gz: 35094277dbd738dfbcc043c89637f05a9a38ba79d0febe9c50bbe8358b49c01c7403ee4ace7d713b4be22de2a820dcc285a4333336f9fff80679d23bfd40efb2
7
- data.tar.gz: c9fbe417578f21221f27a29e5b1752ce590d0129448f79cd0cb58a27658bfcf37a9d2dc3e2349fe0942ae4727ad7f05d3795034b36c0ce02e9b599a2e4597cb1
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
- "#{Time.now.strftime("%Y-%m-%d")}-#{name}-#{which_db}.sql.gz"
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
@@ -1,3 +1,3 @@
1
1
  module Pave
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren