Sha256: 5bf29233499847caaec01a4eedd87b7e2996592d06f0db9fc2adc7b81aa790ed
Contents?: true
Size: 1.01 KB
Versions: 9
Compression:
Stored size: 1.01 KB
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 # These are the locations the spec file can be before the cloud # aborts because it cannot load the cloud def get_existing_spec_location [ "#{Base.remote_storage_path}/#{Base.default_specfile_name}", "#{Base.default_specfile_name}", ENV["POOL_SPEC"], "#{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
9 entries across 9 versions & 1 rubygems