Sha256: de447c5c20d6b11bad07a339e3951a4646a5c1dd23e03e770b7ef555c5c6a8c6

Contents?: true

Size: 706 Bytes

Versions: 32

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require 'avm/registry'
require 'eac_config/node'
require 'eac_ruby_utils/core_ext'

module Avm
  module Applications
    class Base
      module LocalSource
        # @return [Pathname]
        def local_source_path
          (local_source_path_entry.value || auto_local_source_path).to_pathname
        end

        # @return [EacConfig::Entry]
        def local_source_path_entry
          ::EacConfig::Node.context.current.entry([local_instance_id, 'install', 'path'])
        end

        private

        # @return [Avm::Sources::Base]
        def local_source_uncached
          ::Avm::Registry.sources.detect(local_source_path)
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
avm-0.90.1 lib/avm/applications/base/local_source.rb
eac_tools-0.87.1 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.90.0 lib/avm/applications/base/local_source.rb
eac_tools-0.87.0 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.89.0 lib/avm/applications/base/local_source.rb
eac_tools-0.86.12 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.88.0 lib/avm/applications/base/local_source.rb
eac_tools-0.86.11 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.87.0 lib/avm/applications/base/local_source.rb
eac_tools-0.86.8 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.86.2 lib/avm/applications/base/local_source.rb
eac_tools-0.86.7 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.86.1 lib/avm/applications/base/local_source.rb
eac_tools-0.86.5 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.86.0 lib/avm/applications/base/local_source.rb
eac_tools-0.86.4 sub/avm/lib/avm/applications/base/local_source.rb
eac_tools-0.86.3 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.85.0 lib/avm/applications/base/local_source.rb
eac_tools-0.86.2 sub/avm/lib/avm/applications/base/local_source.rb
avm-0.84.3 lib/avm/applications/base/local_source.rb