Sha256: 8708101cf5932d0da5a1800d0da49c7417208933096eff43f63a99c9a7bacbf4
Contents?: true
Size: 936 Bytes
Versions: 26
Compression:
Stored size: 936 Bytes
Contents
require "ftools" module PoolParty module Binary class << self def list_binaries_for(ty="pool") available_binaries_for(ty).join(", ") end def available_binaries_for(ty="pool") Dir["#{binary_directory}/#{ty}-*"].map {|a| File.basename(a.gsub(/#{ty}-/, '')) }.sort end def binary_directory "#{::File.dirname(__FILE__)}/../../../bin" end def get_existing_spec_location [ "#{Base.base_config_directory}/#{Base.default_specfile_name}", "#{Base.remote_storage_path}/#{Base.default_specfile_name}", ENV["POOL_SPEC"], "#{Base.default_specfile_name}", "#{Base.storage_directory}/#{Base.default_specfile_name}", ].reject {|a| a.nil?}.reject do |f| f unless ::File.file?(f) end.first end end end end
Version data entries
26 entries across 26 versions & 2 rubygems