Sha256: 08a1ac6bb75e1bfb3e2fbeaaee28f305c7ad15c5677153450f4398c02e515e3b

Contents?: true

Size: 629 Bytes

Versions: 77

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

require 'avm/applications/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module Registry
    class Applications
      def initialize(*args); end

      # @return [Array<Avm::Applications::Base>]
      def available
        detected.values
      end

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

      private

      # @return [Hash<String, Avm::Applications::Base>]
      def detected
        @detected ||= {}
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
avm-0.78.0 lib/avm/registry/applications.rb
eac_tools-0.70.1 sub/avm/lib/avm/registry/applications.rb
avm-0.77.0 lib/avm/registry/applications.rb
eac_tools-0.70.0 sub/avm/lib/avm/registry/applications.rb
avm-0.76.0 lib/avm/registry/applications.rb
eac_tools-0.69.1 sub/avm/lib/avm/registry/applications.rb
avm-0.75.0 lib/avm/registry/applications.rb
eac_tools-0.69.0 sub/avm/lib/avm/registry/applications.rb
avm-0.74.0 lib/avm/registry/applications.rb
eac_tools-0.68.0 sub/avm/lib/avm/registry/applications.rb
avm-0.73.1 lib/avm/registry/applications.rb
eac_tools-0.67.1 sub/avm/lib/avm/registry/applications.rb
avm-0.73.0 lib/avm/registry/applications.rb
eac_tools-0.67.0 sub/avm/lib/avm/registry/applications.rb
avm-0.72.0 lib/avm/registry/applications.rb
eac_tools-0.66.0 sub/avm/lib/avm/registry/applications.rb
eac_tools-0.65.1 sub/avm/lib/avm/registry/applications.rb
avm-0.71.0 lib/avm/registry/applications.rb
eac_tools-0.65.0 sub/avm/lib/avm/registry/applications.rb
avm-0.70.0 lib/avm/registry/applications.rb