Module: Avm::Self

Defined in:
lib/avm/self.rb,
lib/avm/self/root.rb,
lib/avm/self/instance.rb,
lib/avm/self/docker_image.rb,
lib/avm/self/instance/entry_keys.rb

Defined Under Namespace

Classes: DockerImage, Instance

Class Method Summary collapse

Class Method Details

.applicationObject



13
14
15
# File 'lib/avm/self.rb', line 13

def application
  @application ||= ::EacRubyBase0::Application.new(root.to_path)
end

.build_config(path = nil) ⇒ EacCli::OldConfigsBridge

Returns:

  • (EacCli::OldConfigsBridge)


18
19
20
21
22
23
# File 'lib/avm/self.rb', line 18

def build_config(path = nil)
  ::EacCli::OldConfigsBridge.new(
    application.name,
    path.if_present({}) { |v| { storage_path: v } }
  )
end

.instanceObject



25
26
27
# File 'lib/avm/self.rb', line 25

def instance
  @instance ||= ::Avm::Self::Instance.by_id('avm-tools_self')
end

.rootObject



8
9
10
# File 'lib/avm/self/root.rb', line 8

def root
  ::Pathname.new('../../..').expand_path(__dir__)
end