avm 0.10.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/instances/application.rb +4 -0
- data/lib/avm/instances/base/auto_values/data.rb +2 -2
- data/lib/avm/instances/entry.rb +10 -4
- data/lib/avm/instances/entry_keys.rb +1 -1
- data/lib/avm/instances/runner.rb +2 -1
- data/lib/avm/runners/base.rb +0 -4
- data/lib/avm/self/instance.rb +8 -0
- data/lib/avm/sources/base.rb +1 -1
- data/lib/avm/sources/tester.rb +1 -1
- data/lib/avm/sources/tests/single.rb +1 -1
- data/lib/avm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1fa3a6d770a4005a0006754cd253d522b6a9c521c3ca426fe69dc43118b4101
|
4
|
+
data.tar.gz: 1aea6bae6db31d7bf6bd315eff95247ba5f2cb3886267d2aa6944a83d11b891f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2c06a7e3a1ded1ad9a54152658f6c3a216994c26f2ddbad37b6e89e36381770f99f0dad61c8d543ed35daec3d26ba60c962450432d3e440a678b76f7cb95719
|
7
|
+
data.tar.gz: fc40a815b2c8eaef9863ab25ef3fdd4fe919d38d73cca6f9d628692fdc0ecf906ffe0a53508192ed592ccbaf676a23545710071ddf2a74e7651021f2a588b5ff
|
@@ -9,8 +9,8 @@ module Avm
|
|
9
9
|
module AutoValues
|
10
10
|
module Data
|
11
11
|
def auto_data_default_dump_path
|
12
|
-
::Avm::Self
|
13
|
-
.
|
12
|
+
::Avm::Self::Instance
|
13
|
+
.default
|
14
14
|
.read_entry_optional(::Avm::Self::Instance::EntryKeys::DATA_DEFAULT_PATH)
|
15
15
|
.if_present do |v|
|
16
16
|
::File.join(
|
data/lib/avm/instances/entry.rb
CHANGED
@@ -27,11 +27,11 @@ module Avm
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def optional_value
|
30
|
-
|
30
|
+
context_entry.found? ? context_entry.value : auto_value
|
31
31
|
end
|
32
32
|
|
33
|
-
def read
|
34
|
-
|
33
|
+
def read
|
34
|
+
context_entry.value
|
35
35
|
end
|
36
36
|
|
37
37
|
def suffix_as_array
|
@@ -47,7 +47,13 @@ module Avm
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def write(value)
|
50
|
-
|
50
|
+
context_entry.value = value
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def context_entry
|
56
|
+
::EacConfig::Node.context.current.entry(full_path)
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
data/lib/avm/instances/runner.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'avm/runners/base'
|
3
4
|
require 'eac_cli/core_ext'
|
4
5
|
|
5
6
|
module Avm
|
6
7
|
module Instances
|
7
|
-
class Runner
|
8
|
+
class Runner < ::Avm::Runners::Base
|
8
9
|
class << self
|
9
10
|
def instance_class
|
10
11
|
::Avm.const_get(stereotype_name).const_get('Instance')
|
data/lib/avm/runners/base.rb
CHANGED
data/lib/avm/self/instance.rb
CHANGED
@@ -8,6 +8,14 @@ require 'avm/eac_ubuntu_base0/docker_image'
|
|
8
8
|
module Avm
|
9
9
|
module Self
|
10
10
|
class Instance < ::Avm::Instances::Base
|
11
|
+
DEFAULT_INSTANCE_ID = 'avm_self'
|
12
|
+
|
13
|
+
class << self
|
14
|
+
def default
|
15
|
+
@default ||= by_id(DEFAULT_INSTANCE_ID)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
11
19
|
def docker_image_class
|
12
20
|
::Avm::Self::DockerImage
|
13
21
|
end
|
data/lib/avm/sources/base.rb
CHANGED
data/lib/avm/sources/tester.rb
CHANGED
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.
|
4
|
+
version: 0.13.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
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_cli
|