pvcglue_dbutils 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +9 -1
- data/lib/pvcglue_dbutils/version.rb +1 -1
- data/lib/tasks/pvcglue_dbutils.rake +6 -5
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Yjg2NTcxOGUyYzc5YmQyMjZjMGU4NTE0M2UyNGEzNzVjZDZmYTI2ZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c9bc89c7b07d70949cb55a89314c60eab3937d09
|
4
|
+
data.tar.gz: 5ed6cecf7dd96f6dee4e9315bd2bebbfcbb2e399
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OTdjYjk5ZTFkNWI0NGZlYTRlMWFjZjIwMDZlZDYxZTFjYjdjYWMwYTVmOTBl
|
11
|
-
YzI0OTg3MGVjYjc2N2VhYzRkOTgxNzRmNWFiODMzNjI5ZjhmMTI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZjQzYTk3MGNiNDE3N2JlZTY1YjZkOWQyMjcyMGNiZDNhYTM4ZjkxYzE1M2I1
|
14
|
-
ZDBkMGU5M2ViZDI0ZTBmOWYzNzg0YTk5ZmU2ODliOTA5YzIzMDk2NDJlYzhm
|
15
|
-
ZGE2ZjlhYzVhNzQ1ZTVhYmJmODExOTBjZDA0MTYzZjE1ODEyMjc=
|
6
|
+
metadata.gz: 0a118e15ebd385c5fd427c46a25c9620926c2e5bf235fab6dec09ebf53a8ea17de53c10427b9401b2fcfc20837090d1b395287a991436720589357feb8c3b639
|
7
|
+
data.tar.gz: 437c2685846f266b44a3743e003e5a95261de7c198a6c90417af50b2761bfaae4bcde16e5c0a2ee1767e2b601b4ddfe1980ae125dadcf876c545d0df498aead9
|
data/README.md
CHANGED
@@ -18,7 +18,15 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
TODO: Write usage instructions here
|
21
|
+
TODO: Write more usage instructions here
|
22
|
+
|
23
|
+
rake db:backup[filename] # dump database (with schema) to *.sql using pg_dump
|
24
|
+
rake db:backup_data_only[filename] # dump database (without schema_migrations) to *.sql using pg_dump
|
25
|
+
rake db:info # shows the current database configuration
|
26
|
+
rake db:rebuild[filename] # Rebuild (drop, create, migrate) db
|
27
|
+
rake db:reload[filename] # Reload schema, then seed
|
28
|
+
rake db:restore[filename] # restore database from sql file
|
29
|
+
|
22
30
|
|
23
31
|
## Contributing
|
24
32
|
|
@@ -114,7 +114,9 @@ namespace :db do
|
|
114
114
|
#cmd += " --exclude-table=cacheinators -T cacheinators_id_seq"
|
115
115
|
cmd += " #{db["database"]} > #{path_with_default(args[:filename])}"
|
116
116
|
puts cmd
|
117
|
-
|
117
|
+
if system({"PGPASSWORD" => db["password"]}, cmd)
|
118
|
+
`sed -i -e 's/SET lock_timeout = 0;/--SET lock_timeout = 0;/g' db/rebuild.sql` # fix sql from 9.3 that is not compatible with 9.1
|
119
|
+
else
|
118
120
|
puts "ERROR:"
|
119
121
|
puts $?.inspect
|
120
122
|
end
|
@@ -153,10 +155,9 @@ namespace :db do
|
|
153
155
|
end
|
154
156
|
end
|
155
157
|
|
156
|
-
desc '
|
157
|
-
task :info
|
158
|
-
|
159
|
-
ap db
|
158
|
+
desc 'shows the current database configuration'
|
159
|
+
task :info => :environment do |t, args|
|
160
|
+
puts Rails.configuration.database_configuration[Rails.env].inspect
|
160
161
|
end
|
161
162
|
|
162
163
|
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pvcglue_dbutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Lyric
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.0
|
20
20
|
- - <
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 1.3.0
|
30
30
|
- - <
|
@@ -71,17 +71,17 @@ require_paths:
|
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.4.
|
84
|
+
rubygems_version: 2.4.3
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Write a short summary. Required.
|