Sha256: 3c649fe3d57dd60a24b716c5283ab47d5972ec8c2de32b59bd18504994a80f75

Contents?: true

Size: 578 Bytes

Versions: 28

Compression:

Stored size: 578 Bytes

Contents

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

require 'git-style-binary/command'

GitStyleBinary.command do
  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

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 bin/cloud-osxcopy
auser-poolparty-1.3.1 bin/cloud-osxcopy
auser-poolparty-1.3.10 bin/cloud-osxcopy
auser-poolparty-1.3.11 bin/cloud-osxcopy
auser-poolparty-1.3.12 bin/cloud-osxcopy
auser-poolparty-1.3.13 bin/cloud-osxcopy
auser-poolparty-1.3.14 bin/cloud-osxcopy
auser-poolparty-1.3.15 bin/cloud-osxcopy
auser-poolparty-1.3.16 bin/cloud-osxcopy
auser-poolparty-1.3.17 bin/cloud-osxcopy
auser-poolparty-1.3.2 bin/cloud-osxcopy
auser-poolparty-1.3.3 bin/cloud-osxcopy
auser-poolparty-1.3.4 bin/cloud-osxcopy
auser-poolparty-1.3.5 bin/cloud-osxcopy
auser-poolparty-1.3.6 bin/cloud-osxcopy
auser-poolparty-1.3.7 bin/cloud-osxcopy
auser-poolparty-1.3.8 bin/cloud-osxcopy
fairchild-poolparty-1.3.17 bin/cloud-osxcopy
fairchild-poolparty-1.3.5 bin/cloud-osxcopy
poolparty-1.3.15 bin/cloud-osxcopy