Sha256: dd54dd95c3891a7868f5b0382b85643059f6c8d6f3a3740a4f00bf4130b8d40b

Contents?: true

Size: 513 Bytes

Versions: 53

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "poolparty"
require "poolpartycl"

@command = ARGV[-1] || ""

o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
  opts.on('-c command', '--command command', 'Command to run')    { |c| optioner.command c }
end

@command,@args = Arr.split(" ")[0], Arr.split(" ")[1..-1]

o.loaded_clouds do |cloud|
  with_cloud(cloud, {:command => @command, :command_args => @args}) do
    cloud.send command.to_sym, command_args
  end  
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
auser-poolparty-0.2.61 bin/server-send-command
auser-poolparty-0.2.62 bin/server-send-command
auser-poolparty-0.2.63 bin/server-send-command
auser-poolparty-0.2.64 bin/server-send-command
auser-poolparty-0.2.65 bin/server-send-command
auser-poolparty-0.2.66 bin/server-send-command
auser-poolparty-0.2.67 bin/server-send-command
auser-poolparty-0.2.68 bin/server-send-command
auser-poolparty-0.2.69 bin/server-send-command
auser-poolparty-0.2.70 bin/server-send-command
auser-poolparty-0.2.71 bin/server-send-command
auser-poolparty-0.2.72 bin/server-send-command
auser-poolparty-0.2.74 bin/server-send-command
auser-poolparty-0.2.76 bin/server-send-command
auser-poolparty-0.2.77 bin/server-send-command
auser-poolparty-0.2.78 bin/server-send-command
auser-poolparty-0.2.79 bin/server-send-command
auser-poolparty-0.2.80 bin/server-send-command
auser-poolparty-0.2.81 bin/server-send-command
auser-poolparty-0.2.84 bin/server-send-command