avm 0.64.0 → 0.64.2

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: ba854f4987d1cd9c3b119ded50683d1c4f0516ad48a1880f06b9851e803cedae
4
- data.tar.gz: d3ce9d2097a7a585b5bd6f9865c48d12a1022941f946581d0631005119a2dfaa
3
+ metadata.gz: cfbe828fa402574c8d87792d855971448ab931e26ecfb1ed15ea50acc81169e6
4
+ data.tar.gz: 3a1c0bc8719b29f23cb8e8b195430ca875592b8f01902e1cddcd80ac64943774
5
5
  SHA512:
6
- metadata.gz: dc4864f06bdea6f1e65fa29dad2f78ac08ca18a9cc4cbb0d74b4e0b95912a502c728949113d62e150d70e6660f5a005e4a9894f840117d09eba52d6a0bb1ef20
7
- data.tar.gz: 9788c85abb180b1a474d18412b2512d356a880b297a8a3c1bbb1cad49e3f303f5ee3e6d8d61d0fa6acb10c6ce928b449b50f6a06b1352b6db9803f2ce7ade568
6
+ metadata.gz: 7fb5104275aa21de8f5b647cd035df7ddf7cf5a5525138d1485643d931257974de2bcf3adbc735212b7c2e4e3958a4079ebd14d6a9bee1c319f0f9fa4984a90e
7
+ data.tar.gz: 71880eff3e7920658456b8e5e7fe7998b53ea27c5fed3c612008147ad55e65c12268b6f6a67608fa6c89e684d57711114d803bcbfefe5cd16de1370914f5ffbc
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/version'
4
+ require 'avm/entries/jobs/with_variables_source'
4
5
  require 'eac_ruby_utils/core_ext'
5
6
  require 'eac_docker/images/templatized'
6
7
  require 'eac_docker/registry'
@@ -8,6 +9,8 @@ require 'eac_docker/registry'
8
9
  module Avm
9
10
  module Docker
10
11
  class Image < ::EacDocker::Images::Templatized
12
+ prepend ::Avm::Entries::Jobs::WithVariablesSource
13
+
11
14
  DEFAULT_REGISTRY_NAME = 'local'
12
15
 
13
16
  class << self
@@ -41,14 +44,6 @@ module Avm
41
44
  ::EacDocker::Executables.docker.command.append(['push', tag]).system!
42
45
  end
43
46
 
44
- def read_entry(path, options = {})
45
- method = path.gsub('.', '_')
46
- return send(method) if respond_to?(path, true)
47
- return instance.read_entry(path, options) if respond_to?(:instance)
48
-
49
- raise "Method \"#{method}\" not found for entry \"#{path}\""
50
- end
51
-
52
47
  def run(instance)
53
48
  run_run(instance) if container_exist?(instance)
54
49
  end
@@ -2,13 +2,13 @@
2
2
 
3
3
  require 'avm/launcher/paths/real'
4
4
  require 'avm/launcher/stereotype'
5
+ require 'eac_ruby_utils/core_ext'
5
6
 
6
7
  module Avm
7
8
  module Launcher
8
9
  module Paths
9
10
  class Logical
10
- include ::Comparable
11
- include ::EacRubyUtils::SimpleCache
11
+ enable_simple_cache
12
12
 
13
13
  class << self
14
14
  def from_h(context, hash)
@@ -17,18 +17,11 @@ module Avm
17
17
  end
18
18
  end
19
19
 
20
- attr_reader :context, :real, :logical, :parent_path
21
-
22
- def initialize(context, parent_path, real, logical)
23
- @context = context
24
- @parent_path = parent_path
25
- @real = ::Avm::Launcher::Paths::Real.new(real)
26
- @logical = logical
20
+ common_constructor :context, :parent_path, :real, :logical do
21
+ self.real = ::Avm::Launcher::Paths::Real.new(real)
27
22
  end
28
23
 
29
- def <=>(other)
30
- [logical, real] <=> [other.logical, other.real]
31
- end
24
+ compare_by :logical, :real
32
25
 
33
26
  def to_s
34
27
  logical
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.64.0'
4
+ VERSION = '0.64.2'
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.64.0
4
+ version: 0.64.2
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: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.16'
19
+ version: '0.17'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.16'
26
+ version: '0.17'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_cli
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.6'
67
+ version: '0.7'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.6'
74
+ version: '0.7'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: eac_fs
77
77
  requirement: !ruby/object:Gem::Requirement