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 +4 -4
- data/lib/avm/docker/image.rb +3 -8
- data/lib/avm/launcher/paths/logical.rb +5 -12
- data/lib/avm/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbe828fa402574c8d87792d855971448ab931e26ecfb1ed15ea50acc81169e6
|
4
|
+
data.tar.gz: 3a1c0bc8719b29f23cb8e8b195430ca875592b8f01902e1cddcd80ac64943774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fb5104275aa21de8f5b647cd035df7ddf7cf5a5525138d1485643d931257974de2bcf3adbc735212b7c2e4e3958a4079ebd14d6a9bee1c319f0f9fa4984a90e
|
7
|
+
data.tar.gz: 71880eff3e7920658456b8e5e7fe7998b53ea27c5fed3c612008147ad55e65c12268b6f6a67608fa6c89e684d57711114d803bcbfefe5cd16de1370914f5ffbc
|
data/lib/avm/docker/image.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
74
|
+
version: '0.7'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: eac_fs
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|