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

Version Path
auser-poolparty-0.2.16 bin/pool
auser-poolparty-0.2.20 bin/pool
auser-poolparty-0.2.21 bin/pool
auser-poolparty-0.2.22 bin/pool
auser-poolparty-0.2.23 bin/pool
auser-poolparty-0.2.24 bin/pool
auser-poolparty-0.2.25 bin/pool
auser-poolparty-0.2.26 bin/pool
auser-poolparty-0.2.35 bin/pool
auser-poolparty-0.2.36 bin/pool
auser-poolparty-0.2.37 bin/pool
auser-poolparty-0.2.38 bin/pool
auser-poolparty-0.2.39 bin/pool
auser-poolparty-0.2.40 bin/pool
auser-poolparty-0.2.41 bin/pool
auser-poolparty-0.2.42 bin/pool
auser-poolparty-0.2.44 bin/pool
poolparty-0.2.18 bin/pool