Sha256: 850294addb59168a4a585e35af708ba67f445f0761555575c1878f9782afe70c

Contents?: true

Size: 571 Bytes

Versions: 19

Compression:

Stored size: 571 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}

  ssh into an instance of the cloud
EOS

  short_desc "ssh into an instance of the cloud"
  opt :to, "To this directory", :default => "~"
    
  run do |command|
    cloud = @loaded_clouds.first
    dir = command.argv.pop
    
    if !cloud.nodes.empty?
      cloud.rsync(dir, command[:to])
    else
      puts "No running instances can be found"
    end
    
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
poolparty-1.6.9 bin/cloud-rsync
poolparty-1.6.8 bin/cloud-rsync
poolparty-1.6.7 bin/cloud-rsync
poolparty-1.6.6 bin/cloud-rsync
poolparty-1.6.5 bin/cloud-rsync
poolparty-1.6.4 bin/cloud-rsync
poolparty-1.6.3 bin/cloud-rsync
poolparty-1.6.2 bin/cloud-rsync
poolparty-1.6.1 bin/cloud-rsync
poolparty-1.6.0 bin/cloud-rsync
poolparty-1.5.0 bin/cloud-rsync
poolparty-1.4.8 bin/cloud-rsync
poolparty-1.4.7 bin/cloud-rsync
poolparty-1.4.6 bin/cloud-rsync
poolparty-1.4.5 bin/cloud-rsync
poolparty-1.4.4 bin/cloud-rsync
poolparty-1.4.3 bin/cloud-rsync
poolparty-1.4.2 bin/cloud-rsync
poolparty-1.4.1 bin/cloud-rsync