Sha256: 59682335c8bd3049223cace7c4bcf04d725fe4ece43e5c490ba99933a1024fc3
Contents?: true
Size: 980 Bytes
Versions: 5
Compression:
Stored size: 980 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}", "#{Base.default_project_specfile_name}" ].reject {|a| a.nil?}.reject do |f| f unless ::File.readable?(f) end.first end end end end
Version data entries
5 entries across 5 versions & 1 rubygems