Sha256: 58d1ba5ae25c52e247a60ce2c03d2b2d4e92fda8d599b044cc0cf83e58ef3574

Contents?: true

Size: 955 Bytes

Versions: 18

Compression:

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

  read the code 
EOS

  short_desc "various cloud development tasks"
  
  opt :inst_num, "The number of the instance to run bootstrap on", :type => :int
  opt :force, "Force rebootstrapping (useful for upgrading)", :default => false

  run do |command|
    @loaded_clouds.each do |cld|
      cld.nodes.each do |node|

        case command.argv.shift
        when "deploy_hermes"
          hermesdir = File.dirname(__FILE__) + "/../vendor/erlang/hermes"
          release = `#{hermesdir}/scripts/most_recent_release tar.gz`.strip
          node.scp(:source => release, :destination => "/var/poolparty/tmp")
          node.scp(:source => "#{hermesdir}/scripts/target_system", :destination => "/var/poolparty/tmp")
        end

      end
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
auser-poolparty-1.3.10 bin/cloud-misc
auser-poolparty-1.3.11 bin/cloud-misc
auser-poolparty-1.3.12 bin/cloud-misc
auser-poolparty-1.3.13 bin/cloud-misc
auser-poolparty-1.3.14 bin/cloud-misc
auser-poolparty-1.3.15 bin/cloud-misc
auser-poolparty-1.3.16 bin/cloud-misc
auser-poolparty-1.3.17 bin/cloud-misc
auser-poolparty-1.3.6 bin/cloud-misc
auser-poolparty-1.3.7 bin/cloud-misc
auser-poolparty-1.3.8 bin/cloud-misc
fairchild-poolparty-1.3.17 bin/cloud-misc
poolparty-1.3.15 bin/cloud-misc
poolparty-1.3.14 bin/cloud-misc
poolparty-1.3.13 bin/cloud-misc
poolparty-1.3.8 bin/cloud-misc
poolparty-1.3.7 bin/cloud-misc
poolparty-1.3.6 bin/cloud-misc