Sha256: b3112d5a1f4a9f7a3e2be091e3af2ccc6b3b2afff0eac7db3c95cb1bbf9da5ea

Contents?: true

Size: 531 Bytes

Versions: 53

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/envs'
require 'eac_ruby_utils/core_ext'

module EhbrsRubyUtils
  module Executables
    class << self
      enable_simple_cache

      def env
        ::EacRubyUtils::Envs.local
      end

      private

      {
        '-version' => %w[ffprobe]
      }.each do |validate_arg, commands|
        commands.each do |command|
          define_method("#{command}_uncached") do
            env.executable(command, validate_arg)
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
ehbrs_ruby_utils-0.20.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.19.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.18.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.17.3 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.17.2 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.17.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.17.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.16.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.16.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.15.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.14.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.13.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.12.2 lib/ehbrs_ruby_utils/executables.rb
ehbrs-tools-0.28.3 vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.12.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs-tools-0.28.2 vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
ehbrs-tools-0.28.1 vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.12.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs-tools-0.28.0 vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.11.0 lib/ehbrs_ruby_utils/executables.rb