Sha256: 923bbe1229392092dd696deb52ceb37e0621a73186c956471acc04e258dec1ee
Contents?: true
Size: 868 Bytes
Versions: 18
Compression:
Stored size: 868 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "poolparty" require "poolpartycl" # Get the git-style program action # o = PoolParty::Optioner.new(ARGV) do |opts, optioner| # opts.on('-n [name]','--name [name]', 'Binary to run') { |o| optioner.name o } # end name = ARGV.shift # If there was no program action given if !name || name == "-h" || name == "--help" puts "Usage: pool <specfile> <action> <options>" puts "Pool actions:" puts Binary.list_binaries_for("pool") exit end program_name = "#{File.basename($0)}-#{name}" program_location = File.join(Binary.binary_directory, program_name) command_line = "#{program_location}" # Run it from the command-line first if Binary.available_binaries_for("pool").include?(name) system command_line, *ARGV else puts "Unknown poolparty binary: #{program_name}" end
Version data entries
18 entries across 18 versions & 2 rubygems