Sha256: 49c6d6ed6bae997e055a9e739004235115d16dcd49423569047d76732c30fd7b

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + "/../lib")
require "poolparty"
# require "poolpartycl"
require 'git-style-binary/command'

GitStyleBinary.command do  
  version "PoolParty #{$0} command"  
  banner <<-EOS
Usage: #{$0} #{all_options_string} COMMAND [ARGS]

  Copy the IP address of a node to the Mac OS X clipboard
EOS

  short_desc "Copy the IP address of a node to the Mac OS X clipboard"

  run do |command|    
    @loaded_clouds.each do |cld|
      
      node = cld.nodes(:status => "running").first
      ip = node.ip
      puts "ip: #{ip}"
      Kernel.system "echo #{ip} | pbcopy"
      
    end    
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.2.10 bin/cloud-osxcopy
auser-poolparty-1.2.11 bin/cloud-osxcopy
auser-poolparty-1.2.12 bin/cloud-osxcopy
auser-poolparty-1.2.3 bin/cloud-osxcopy
auser-poolparty-1.2.4 bin/cloud-osxcopy
auser-poolparty-1.2.7 bin/cloud-osxcopy
auser-poolparty-1.2.8 bin/cloud-osxcopy
auser-poolparty-1.2.9 bin/cloud-osxcopy
fairchild-poolparty-1.2.12 bin/cloud-osxcopy