avm 0.1.0 → 0.2.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: aff175324c56cbd1e5b835ae4f206d4b2853f3bf4672fd77b36fc0c9f797a1ce
4
- data.tar.gz: 227311552bda634562a11e6a82ddf17c267bc103b136b592e55ba3937b765391
3
+ metadata.gz: 76638a50e8427dad6ecb195da51a10def71512b50d6ccfdc077dc8c3cfb7407c
4
+ data.tar.gz: 858b52227faabeb78f0cb55b3196e3a702b7c58bcd920c2280f53f436f738179
5
5
  SHA512:
6
- metadata.gz: 6353f5aeeff981be0c49935aeff371be50f2e29cd302a0564f7330f9475c78c82028d1b5f139cf757fce28c45b44bd8a55c03efdd21f14901548826c800d252f
7
- data.tar.gz: 25165e9f7f862219eacbd82795778ebe0487e1b931fd1f6af2d20f3fbc2879dbe3b164bc5be8f9d8d27f79bbfcc623dded10bfd9525f3669720a7dca778dd737
6
+ metadata.gz: 61e68a1e384b360e0923a5d8d9f1d27df603871264e2b424fa117412d38a6c3d9af7efcb43a32c85e871a84e7df743119a2bf5439def816854bb09ad1930c065
7
+ data.tar.gz: df0bcc88cf7292dc014d4efbe9b8227b51889af7dc5bc41c28bd4dc20ab64ab947e75b43d7174e5f6ea48d22a16e3afb4fc426c87527b5b13e465eaf7b0761de
@@ -6,6 +6,8 @@ require 'eac_ruby_utils/core_ext'
6
6
  module Avm
7
7
  module Docker
8
8
  class Runner
9
+ DOCKER_DEFAULT_REGISTRY_METHOD = :docker_default_registry
10
+
9
11
  enable_speaker
10
12
  enable_simple_cache
11
13
 
@@ -92,17 +94,11 @@ module Avm
92
94
  end
93
95
 
94
96
  def registry_from_instance
95
- if if_respond(:use_default_registry?, true)
96
- instance.docker_registry_optional.if_present { |v| ::EacDocker::Registry.new(v) }
97
- else
98
- ::EacDocker::Registry.new(instance.docker_registry)
99
- end
97
+ instance.docker_registry_optional.if_present { |v| ::EacDocker::Registry.new(v) }
100
98
  end
101
99
 
102
100
  def registry_from_default
103
- return nil unless if_respond(:use_default_registry?, true)
104
-
105
- nyi 'Was "::Avm::Docker::Registry.default"'
101
+ if_respond(DOCKER_DEFAULT_REGISTRY_METHOD, nil)
106
102
  end
107
103
 
108
104
  def snapshot?
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/docker/image'
4
+
5
+ module Avm
6
+ module Instances
7
+ class DockerImage < ::Avm::Docker::Image
8
+ attr_accessor :instance
9
+
10
+ def stereotype_tag
11
+ instance.id
12
+ end
13
+ end
14
+ end
15
+ end
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.1.0'
4
+ VERSION = '0.2.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.1.0
4
+ version: 0.2.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_docker
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.2.2
19
+ version: '0.3'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.2.2
26
+ version: '0.3'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: eac_ruby_utils
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,6 +63,7 @@ files:
69
63
  - lib/avm/docker/container.rb
70
64
  - lib/avm/docker/image.rb
71
65
  - lib/avm/docker/runner.rb
66
+ - lib/avm/instances/docker_image.rb
72
67
  - lib/avm/version.rb
73
68
  - lib/avm/version_number.rb
74
69
  homepage: