Sha256: f79b6b23687347cba35891311b434ad4f7ba040835805398dab87ee899977e24
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 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} #{ARGV.join(" ")}" # Run it from the command-line first if Binary.available_binaries_for("pool").include?(name) Kernel.exec "#{command_line}" else puts "Unknown poolparty binary: #{program_name}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.15 | bin/pool |
auser-poolparty-0.2.9 | bin/pool |