avm 0.40.0 → 0.41.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: 29538404e81ca5b9e3c7043a5b665b9a73f4bb662b7e5d6d1de891154c3bdddf
4
- data.tar.gz: a2e2216c1cbdaf94044f3b59ee1c0aec69e193720d3f6312c25a6aad59865ea0
3
+ metadata.gz: ff98dd57f92b57b9584b1f9e6b17f7d6512ac0a9e7d9fa61efddff90a2384f5c
4
+ data.tar.gz: 4a4c95084804d58be56d34ee820e1fb6435cbb33ef67b1cb8be9420a4a6b5ca9
5
5
  SHA512:
6
- metadata.gz: c4e2ac1e34e6d64bc030183c414507b5ca15e82039ff16728727786357b5922c8a193cd58ffd2b51d40b0055531ce94b111135e1ff0589e198099b40b3421f3d
7
- data.tar.gz: f430f917bd972158fdfbef76de2f72ecfa4a514df8d333dc360cdaaf6adcc6bbc4dabce9f37371c07b00fde76bc8eda1162787c20ab2a2e1edc80c736a70a98f
6
+ metadata.gz: 104bc1564c1184da11ab751b250324da90af6353e0656c4c9fe7d9920e13efbb029177a460e32721b03ec99d85bdc44cd7939e7c294235dac2130d983e514f59
7
+ data.tar.gz: c9ab7a4af7ae782a1c36b93b0d3664d6f161b638b867f397373088932f507ca1da762f0c6077ab9f71eb279081f9e02f3febbe27c1750c3a2509162f45b437e9
@@ -38,7 +38,7 @@ module Avm
38
38
 
39
39
  # @return [Avm::Sources::Base]
40
40
  def local_source_uncached
41
- ::Avm::Registry.sources.detect(local_instance.fs_path)
41
+ ::Avm::Registry.sources.detect(local_instance.install_path)
42
42
  end
43
43
  end
44
44
  end
@@ -18,7 +18,8 @@ module Avm
18
18
  before_load :clear_files
19
19
 
20
20
  def files_path
21
- ::File.join(instance.read_entry(::Avm::Instances::EntryKeys::FS_PATH), fs_path_subpath)
21
+ ::File.join(instance.read_entry(::Avm::Instances::EntryKeys::INSTALL_PATH),
22
+ fs_path_subpath)
22
23
  end
23
24
 
24
25
  def dump_command
@@ -11,10 +11,10 @@ module Avm
11
11
  class DefaultValue
12
12
  enable_method_class
13
13
  common_constructor :uri_component_entry_value
14
- delegate :component, :entries_provider, to: :uri_component_entry_value
14
+ delegate :component_entry_path, :entries_provider, to: :uri_component_entry_value
15
15
 
16
16
  def default_value_method_name
17
- "#{component}_default_value"
17
+ "#{component_entry_path.parts.join('_').variableize}_default_value"
18
18
  end
19
19
 
20
20
  def result
@@ -11,7 +11,7 @@ module Avm
11
11
  class InheritedValue
12
12
  enable_method_class
13
13
  common_constructor :uri_component_entry_value
14
- delegate :component, :entries_provider, :id_entry_path, :component_entry_path,
14
+ delegate :entries_provider, :id_entry_path, :component_entry_path,
15
15
  to: :uri_component_entry_value
16
16
 
17
17
  def result
@@ -29,7 +29,7 @@ module Avm
29
29
  end
30
30
 
31
31
  def inherited_value_block_method_name
32
- "#{component}_inherited_value_proc".to_sym
32
+ "#{component_entry_path.parts.join('_').variableize}_inherited_value_proc".to_sym
33
33
  end
34
34
  end
35
35
  end
@@ -7,10 +7,6 @@ module Avm
7
7
  class Base
8
8
  module AutoValues
9
9
  module Filesystem
10
- def auto_fs_path
11
- inherited_entry_value(::Avm::Instances::EntryKeys::INSTALL_ID,
12
- ::Avm::Instances::EntryKeys::FS_PATH) { |v| v + '/' + id }
13
- end
14
10
  end
15
11
  end
16
12
  end
@@ -28,13 +28,17 @@ module Avm
28
28
  ::Avm::Entries::AutoValues::UriEntry.new(self, 'install').value
29
29
  end
30
30
 
31
- def data_path_inherited_value_proc(value)
31
+ def install_data_path_inherited_value_proc(value)
32
32
  value + '/' + id
33
33
  end
34
34
 
35
- def groupname_default_value
35
+ def install_groupname_default_value
36
36
  read_entry_optional(::Avm::Instances::EntryKeys::INSTALL_USERNAME)
37
37
  end
38
+
39
+ def install_path_inherited_value_proc(value)
40
+ install_data_path_inherited_value_proc(value)
41
+ end
38
42
  end
39
43
  end
40
44
  end
@@ -45,7 +45,7 @@ module Avm
45
45
  end
46
46
 
47
47
  {
48
- '' => %w[fs_path name source_instance_id],
48
+ '' => %w[name source_instance_id],
49
49
  admin: URI_FIELDS + %w[api_key],
50
50
  database: URI_FIELDS + %w[id limit name system timeout extra],
51
51
  docker: %w[registry],
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.40.0'
4
+ VERSION = '0.41.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.40.0
4
+ version: 0.41.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: 2022-08-18 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_cli