pg_backup 0.1.0 → 0.1.1
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/pg_backup/tasks/capistrano.rake +1 -1
- data/lib/pg_backup/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20b3675072ee6e57b262cc39b4eea8bc7f230768
|
|
4
|
+
data.tar.gz: 8ba183071a6bc82d772f7309a55da0b97f09d0bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 454bff1d0a946a263ff3ae3f9824e27828a458779ba9a12e6905d1d2a45828834c7ae96e71b5c01accb32f38c27c190b08473734a74b8cd516f678c64913e5b8
|
|
7
|
+
data.tar.gz: 5156efd1c52f3c5ff26b22ba9bbf7d5047f81ade1fec4422d48ae3f52e80e1584813f9966786471a3d6b2807f2a660abe43c451aa7407de1d23691a0a71646e6
|
|
@@ -42,7 +42,7 @@ namespace :pg_backup do
|
|
|
42
42
|
on roles(:app) do
|
|
43
43
|
within current_path do
|
|
44
44
|
with rails_env: fetch(:environment) do
|
|
45
|
-
file_path = Dir.glob("#{ENV.fetch('PWD')}/#{fetch(:pg_backup_local_dump_dir)}/*.backup").last
|
|
45
|
+
file_path = Dir.glob("#{ENV.fetch('PWD')}/#{fetch(:pg_backup_local_dump_dir)}/*.backup").sort.last
|
|
46
46
|
raise "Can't find a dump file!" unless file_path
|
|
47
47
|
file_name = File.basename file_path
|
|
48
48
|
upload! file_path, "#{shared_path}/#{fetch(:pg_backup_remote_dump_dir)}/#{file_name}"
|
data/lib/pg_backup/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pg_backup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcus Geissler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
96
96
|
version: '0'
|
|
97
97
|
requirements: []
|
|
98
98
|
rubyforge_project:
|
|
99
|
-
rubygems_version: 2.
|
|
99
|
+
rubygems_version: 2.5.1
|
|
100
100
|
signing_key:
|
|
101
101
|
specification_version: 4
|
|
102
102
|
summary: Create, restore, download and upload postgres dumps locally and on remote
|