Sha256: 9d1335a8800e5ebfc58c91a11ec32e8270a15570bc293f1f85937b722913a23c
Contents?: true
Size: 713 Bytes
Versions: 38
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/envs' require 'eac_ruby_utils/simple_cache' module Ehbrs module Executables class << self include ::EacRubyUtils::SimpleCache def env ::EacRubyUtils::Envs.local end private { '-?' => %w[rar], '-h' => %w[unzip], '-version' => %w[ffmpeg], '--version' => %w[flips tar wit] }.each do |validate_arg, commands| commands.each do |command| define_method("#{command}_uncached") do env.executable(command, validate_arg) end end end def sevenzip_uncached env.executable('7z', '--help') end end end end
Version data entries
38 entries across 38 versions & 1 rubygems