Class: Bosh::Cli::Command::Bootstrap

Inherits:
Base
  • Object
show all
Defined in:
lib/bosh/cli/commands/bootstrap.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



36
37
38
39
40
# File 'lib/bosh/cli/commands/bootstrap.rb', line 36

def delete
  require "bosh-bootstrap/cli/commands/delete"
  cmd = Bosh::Bootstrap::Cli::Commands::Delete.new
  cmd.perform
end

#deployObject



20
21
22
23
24
# File 'lib/bosh/cli/commands/bootstrap.rb', line 20

def deploy
  require "bosh-bootstrap/cli/commands/deploy"
  deploy_cmd = Bosh::Bootstrap::Cli::Commands::Deploy.new
  deploy_cmd.perform
end

#helpObject



9
10
11
12
13
14
15
16
# File 'lib/bosh/cli/commands/bootstrap.rb', line 9

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

#sshObject



28
29
30
31
32
# File 'lib/bosh/cli/commands/bootstrap.rb', line 28

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