prun-ops 0.2.15 → 0.2.16
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/prun-ops/version.rb +1 -1
- data/lib/tasks/db.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f51451eb45ff7b7f66879651f250de2ce7d25f8d95482c943fb5adc0754af156
|
4
|
+
data.tar.gz: fc8f4ca5c032b26ae069728c34d6d4f1aff1182f7fec71fa682cd1016f5a9c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea66c9e692aa12d8f99304e7524298860f283ff1b1c4265ada9b120ba35e545be65dd9305911190fcc9b9f95d8b04421606bb121cf401cad40e173309c94c091
|
7
|
+
data.tar.gz: a486a131b75246484815fcb9f38645f21c5aaa9844683d6fb11f12b156bbb27c290da247b9d95db021d34fad3781a1cd6f585c79d9c99ce03b8de078aeb73e8f
|
data/lib/prun-ops/version.rb
CHANGED
data/lib/tasks/db.rake
CHANGED
@@ -10,7 +10,7 @@ namespace :db do
|
|
10
10
|
|
11
11
|
desc "Backup the database tp tmp/db.sql file"
|
12
12
|
task backup: :get_db_config do
|
13
|
-
sh "export PGPASSWORD=#{@password} && pg_dump #{@database} --host #{@host} -U #{@username} -f #{@default_filename}"
|
13
|
+
sh "export PGPASSWORD=#{@password} && pg_dump #{@database} --host #{@host} --port #{@port} -U #{@username} -f #{@default_filename}"
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Restore the database from tmp/db.sql file if no one is passed"
|
@@ -22,6 +22,7 @@ end
|
|
22
22
|
task :get_db_config do
|
23
23
|
config = Rails.configuration.database_configuration
|
24
24
|
@host = config[Rails.env]["host"]
|
25
|
+
@port = config[Rails.env]["port"]
|
25
26
|
@database = config[Rails.env]["database"]
|
26
27
|
@username = config[Rails.env]["username"]
|
27
28
|
@password = config[Rails.env]["password"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prun-ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lebrijo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|