Sha256: b9932b6a855b509eb7c1a5cb1fc952eea3fa835dc853fcf534aa475a77543bc9
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/envs' require 'eac_ruby_utils/simple_cache' module Ehbrs module Tools module Executables class << self include ::EacRubyUtils::SimpleCache def env ::EacRubyUtils::Envs.local end private { '--version' => %w[flips], '-V' => %w[xdelta3] }.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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ehbrs-tools-0.43.1 | lib/ehbrs/tools/executables.rb |
ehbrs-tools-0.43.0 | lib/ehbrs/tools/executables.rb |