avm 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3be29c02f4be9deec23c40452cf17ad0ce0478c6ae32508690d0a54bc9c4987a
4
- data.tar.gz: e63f5d086715190a1803f4289a48f9e25e56094d570d62f6ed5c22b0ceeb6084
3
+ metadata.gz: 6ca24d93ae7424cc6e6d3929b9341e236602aacbb75e2930ca2cb2b435bce9e6
4
+ data.tar.gz: b0af011f034b3cbfa225cea4dc452d33315c34811f82f90a0843848ef2f3f3b7
5
5
  SHA512:
6
- metadata.gz: 372b53edca7fe1187fa0faa39e145437779a3608b7ce7d248b2d5fe753520079c0542dda99a80b4936f09438f6bda1fceebdb78ce1b741e14854f10160468085
7
- data.tar.gz: 02bd6cdb0cdb4f02e7a202d69de40ca2c5f1c981af6198e8ce1e93b36380b0d39a436d36a358e58856675df9e040080ad6879367e013228cd6bfa3efb3e66735
6
+ metadata.gz: 58d1f630e478a6a7967f61e7979f40f76b2edf467cdda9d95b6228830daf0f87b88342e4e8abdfea5fbd944ba5ed05064efd9e300a81509bbfe8fbe6b2da78e8
7
+ data.tar.gz: 025d2bc3ad847b019bb297c00436ebbb6b2d6655040d98a98d3137fba90285b496b0afd08cba53d234252a0fd9d92f551234a59ae7c248e08eb87db3a0f60565
@@ -7,6 +7,7 @@ module Avm
7
7
  class Base
8
8
  module AutoValues
9
9
  module Database
10
+ DEFAULT_EXTRA = ''
10
11
  DEFAULT_HOSTNAME = '127.0.0.1'
11
12
  DEFAULT_LIMIT = 5
12
13
  DEFAULT_PORTS = {
@@ -18,6 +19,10 @@ module Avm
18
19
  DEFAULT_SYSTEM = 'postgresql'
19
20
  DEFAULT_TIMEOUT = 5000
20
21
 
22
+ def auto_database_extra
23
+ database_auto_common('hostname') || DEFAULT_EXTRA
24
+ end
25
+
21
26
  def auto_database_name
22
27
  inherited_entry_value(::Avm::Instances::EntryKeys::DATABASE_ID,
23
28
  ::Avm::Instances::EntryKeys::DATABASE_NAME) || id
@@ -43,7 +43,7 @@ module Avm
43
43
 
44
44
  {
45
45
  '' => %w[fs_path host_id source_instance_id],
46
- database: %w[id hostname limit name password port system timeout username],
46
+ database: %w[id hostname limit name password port system timeout username extra],
47
47
  docker: %w[registry],
48
48
  mailer: {
49
49
  '' => %w[id from reply_to],
data/lib/avm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_cli