rails_pg_restore 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rails_pg_restore +3 -1
- data/lib/rails_pg_restore/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 655f57cebd76977a7b479787ca9554421e83bac8
|
4
|
+
data.tar.gz: 45f1e6a5258e349f5ae3a76695273f13bc3351fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aed1ae94ef6661dc02c2b578deb17ce9ad22e101382c6ab11787d890d00ac3a108aea03dd31b0ce40c84a395c4a52aa8a05009fd89b5702bffa1151d3fba8bd
|
7
|
+
data.tar.gz: 3ffd95f664b4a9e04fe9dd724374279e02c78d2952858fff3918cdc387f43c6ad2443e1f1a11b9d09a559e27dd720c4b81db698afda11f2c735929bcc712762d
|
data/bin/rails_pg_restore
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'yaml'
|
4
|
+
require 'erb'
|
4
5
|
require 'optparse'
|
6
|
+
require_relative "#{Dir.pwd}/config/environment"
|
5
7
|
|
6
8
|
begin
|
7
|
-
db_config = YAML.
|
9
|
+
db_config = YAML.load(ERB.new(File.read('config/database.yml')).result)
|
8
10
|
rescue
|
9
11
|
puts "Database config couldn't be read, please make sure there is a config/database.yml"
|
10
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_pg_restore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Otander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.4.
|
98
|
+
rubygems_version: 2.4.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: CLI to restore a postgres database from a backup
|
102
102
|
test_files: []
|
103
|
-
has_rdoc:
|