Sha256: e630538a05fc99e1bacb6b9c5e81b10a6708e6471787279b4fc96d50b64ab22d

Contents?: true

Size: 674 Bytes

Versions: 20

Compression:

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

  Bootstrap a cloud instance
EOS

  short_desc "Bootstrap a cloud instance"
  
  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|
        node.cloud = cld # needed for bootstrap
        node.bootstrap!(:force=>command[:force])
      end
      
    end
    
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

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