Sha256: b8ca5a16c50f923c6eaae559fbde8d93a09e2603fd1c9ddd414c4966e52b1651

Contents?: true

Size: 451 Bytes

Versions: 32

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/envs'
require 'eac_ruby_utils/simple_cache'

module Avm
  module Executables
    class << self
      include ::EacRubyUtils::SimpleCache

      def env
        ::EacRubyUtils::Envs.local
      end

      private

      %w[xdg-open].each do |program|
        define_method("#{program.underscore}_uncached") do
          env.executable(program, '--version')
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
avm-0.94.0 lib/avm/executables.rb
eac_tools-0.94.0 sub/avm/lib/avm/executables.rb
avm-0.93.0 lib/avm/executables.rb
eac_tools-0.92.0 sub/avm/lib/avm/executables.rb
avm-0.92.0 lib/avm/executables.rb
eac_tools-0.91.0 sub/avm/lib/avm/executables.rb
avm-0.90.1 lib/avm/executables.rb
eac_tools-0.87.1 sub/avm/lib/avm/executables.rb
avm-0.90.0 lib/avm/executables.rb
eac_tools-0.87.0 sub/avm/lib/avm/executables.rb
avm-0.89.0 lib/avm/executables.rb
eac_tools-0.86.12 sub/avm/lib/avm/executables.rb
avm-0.88.0 lib/avm/executables.rb
eac_tools-0.86.11 sub/avm/lib/avm/executables.rb
avm-0.87.0 lib/avm/executables.rb
eac_tools-0.86.8 sub/avm/lib/avm/executables.rb
avm-0.86.2 lib/avm/executables.rb
eac_tools-0.86.7 sub/avm/lib/avm/executables.rb
avm-0.86.1 lib/avm/executables.rb
eac_tools-0.86.5 sub/avm/lib/avm/executables.rb