Class: Avm::Registry::Applications

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/registry/applications.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Applications

Returns a new instance of Applications.



9
# File 'lib/avm/registry/applications.rb', line 9

def initialize(*args); end

Instance Method Details

#availableArray<Avm::Applications::Base>

Returns:



12
13
14
15
# File 'lib/avm/registry/applications.rb', line 12

def available
  load_config
  detected.values
end

#detect(id) ⇒ Avm::Applications::Base



18
19
20
21
22
# File 'lib/avm/registry/applications.rb', line 18

def detect(id)
  id = id.to_s
  detected[id] = ::Avm::Applications::Base.new(id) unless detected.key?(id)
  detected[id]
end