Sha256: 64d60ee8af7b4ed2ba463bca14ed3c9d1baf5b39dbebf06fdde4e17e16ac3a23

Contents?: true

Size: 1.13 KB

Versions: 33

Compression:

Stored size: 1.13 KB

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

require "bosh-bootstrap"

module Bosh::Cli::Command
  class Bootstrap < Base
    usage "bootstrap"
    desc  "show bootstrap sub-commands"
    def help
      say("bosh bootstrap sub-commands:")
      nl
      cmds = Bosh::Cli::Config.commands.values.find_all {|c|
        c.usage =~ /^bootstrap/
      }
      Bosh::Cli::Command::Help.list_commands(cmds)
    end

    usage "bootstrap deploy"
    desc "Configure and bootstrap a micro bosh; or deploy/upgrade existing Micro Bosh"
    def deploy
      require "bosh-bootstrap/cli/commands/deploy"
      deploy_cmd = Bosh::Bootstrap::Cli::Commands::Deploy.new
      deploy_cmd.perform
    end

    usage "bootstrap ssh"
    desc "SSH into micro bosh"
    def ssh
      require "bosh-bootstrap/cli/commands/ssh"
      cmd = Bosh::Bootstrap::Cli::Commands::SSH.new
      cmd.perform
    end

    usage "bootstrap delete"
    desc "Delete existing Micro Bosh (does not delete any bosh deployments running)"
    def delete
      require "bosh-bootstrap/cli/commands/delete"
      cmd = Bosh::Bootstrap::Cli::Commands::Delete.new
      cmd.perform
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
bosh-bootstrap-0.18.1 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.18.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.17.1 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.17.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.16.2 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.16.1 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.16.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.15.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.5 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.4 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.3 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.2 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.1 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.14.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.13.2 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.13.1 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.13.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.12.0 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.11.15 lib/bosh/cli/commands/bootstrap.rb
bosh-bootstrap-0.11.14 lib/bosh/cli/commands/bootstrap.rb