Sha256: a3ee7d819729360635c1ad61f1a6315b0acb7b37e54b972b7673a01768280460

Contents?: true

Size: 724 Bytes

Versions: 17

Compression:

Stored size: 724 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[ffmpeg ffprobe]
      }.each do |validate_arg, commands|
        commands.each do |command|
          define_method("#{command}_uncached") do
            env.executable(command, validate_arg)
          end
        end
      end

      # @return [EacRubyUtils::Envs::Executable]
      def mudslide_uncached
        env.executable('mudslide', exec_args: %w[npx mudslide@latest], check_args: %w[--version])
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.36.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.36.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.35.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.33.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.32.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.31.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.30.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.29.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.28.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.27.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.27.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.26.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.25.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.25.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.24.1 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.24.0 lib/ehbrs_ruby_utils/executables.rb
ehbrs_ruby_utils-0.23.0 lib/ehbrs_ruby_utils/executables.rb