Class: Avm::Launcher::Context::InstanceDiscovery

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/launcher/context/instance_discovery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ InstanceDiscovery

Returns a new instance of InstanceDiscovery.



12
13
14
15
16
17
18
# File 'lib/avm/launcher/context/instance_discovery.rb', line 12

def initialize(context)
  @context = context
  @progress = ::ProgressBar.create(title: 'Instance discovery', total: 1)
  @instances = path_instances(@context.root, nil)
ensure
  @progress&.finish
end

Instance Attribute Details

#instancesObject (readonly)

Returns the value of attribute instances.



10
11
12
# File 'lib/avm/launcher/context/instance_discovery.rb', line 10

def instances
  @instances
end