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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ba08241a1b1b565f6b1679da298b4774af266628da89ecda8503ed055abfe70
4
- data.tar.gz: 237bc313bc04f919ac4443ca88cb5f3d3b00a418cd4fbbb97964fcf655084e31
3
+ metadata.gz: f51451eb45ff7b7f66879651f250de2ce7d25f8d95482c943fb5adc0754af156
4
+ data.tar.gz: fc8f4ca5c032b26ae069728c34d6d4f1aff1182f7fec71fa682cd1016f5a9c6b
5
5
  SHA512:
6
- metadata.gz: 38a351544fc7a96d8b50316eba0cb5ad07ddd880e62f37ceb251d794782ebb5390e1df221fe9df84208339d0326a501dbad9f9e9f6d0e96a6d98fc6ddb29c4d8
7
- data.tar.gz: 1cbcededc906c09e1dd3adeffa0a90dd3b020d11fb133b3c59fae932ad2955daeca6254f2a5b90ba6daa7c726bed0d6161ac4070c6f5764719e1ce3773802e7e
6
+ metadata.gz: ea66c9e692aa12d8f99304e7524298860f283ff1b1c4265ada9b120ba35e545be65dd9305911190fcc9b9f95d8b04421606bb121cf401cad40e173309c94c091
7
+ data.tar.gz: a486a131b75246484815fcb9f38645f21c5aaa9844683d6fb11f12b156bbb27c290da247b9d95db021d34fad3781a1cd6f585c79d9c99ce03b8de078aeb73e8f
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.2.15"
2
+ VERSION = "0.2.16"
3
3
  end
@@ -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.15
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-05-08 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler