avm-eac_postgresql_base0 0.2.0 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2a67a8652cd229c20b08aa095b294e21d423f02b0b861d1bfcccd5c54fcfc74
|
4
|
+
data.tar.gz: 5a07165d40bac4706e20e39e6eedc72fcafb49c8da1ce9bcabdfe8092d1b89ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a25af8a2ff07eb69af5fff54bacfc45b23d0c33752ed92355e07fc7a0da062ad2cc5e04ff9386722e2d6cda6e722b7837f891224d07ed7ad4a1258fb3e51c64
|
7
|
+
data.tar.gz: 0af9592a57753fd6b46a18323a7e33a44fc4740d6d3dea72bc32bb73c7f737585e885ad70c23e8e0c63b09ac035d757f66662b47dabb842bd89ace7ecace2b11
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'avm/data/
|
3
|
+
require 'avm/instances/data/unit'
|
4
4
|
|
5
5
|
module Avm
|
6
6
|
module EacPostgresqlBase0
|
7
7
|
class Instance
|
8
|
-
class DataUnit < ::Avm::Data::
|
8
|
+
class DataUnit < ::Avm::Instances::Data::Unit
|
9
9
|
EXTENSION = '.pgdump.gz'
|
10
10
|
|
11
11
|
before_load :clear_database
|
@@ -27,12 +27,18 @@ module Avm
|
|
27
27
|
.envvar('PGPASSWORD', password)
|
28
28
|
end
|
29
29
|
|
30
|
+
# @return [EacRubyUtils::Envs::Command]
|
30
31
|
def dump_gzip_command
|
31
|
-
dump_command.
|
32
|
+
dump_command.pipe(env.command('gzip', '-9', '-c'))
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [String]
|
36
|
+
def password_command_argument
|
37
|
+
"@ESC_PGPASSWORD=#{password}"
|
32
38
|
end
|
33
39
|
|
34
40
|
def psql_command(database = true)
|
35
|
-
env.command(
|
41
|
+
env.command(password_command_argument, 'psql', *common_command_args(database))
|
36
42
|
end
|
37
43
|
|
38
44
|
def psql_command_command(sql, database = true)
|
@@ -8,9 +8,11 @@ module Avm
|
|
8
8
|
module InstanceWith
|
9
9
|
def pg
|
10
10
|
@pg ||= ::Avm::EacPostgresqlBase0::Instance.new(
|
11
|
-
host_env,
|
12
|
-
|
13
|
-
|
11
|
+
host_env, host: database_hostname,
|
12
|
+
port: database_port,
|
13
|
+
user: database_username,
|
14
|
+
password: database_password,
|
15
|
+
name: database_name
|
14
16
|
)
|
15
17
|
end
|
16
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_postgresql_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,34 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.12.1
|
19
|
+
version: '0.57'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.12.1
|
26
|
+
version: '0.57'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: eac_ruby_utils
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
33
|
+
version: '0.108'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
40
|
+
version: '0.108'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: eac_ruby_gem_support
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|