Class: Bosh::Bootstrap::Cli

Inherits:
Thor
  • Object
show all
Includes:
Helpers::FogSetup, Helpers::Settings, Helpers::SettingsSetter, FileUtils, Thor::Actions
Defined in:
lib/bosh-bootstrap/cli.rb

Constant Summary collapse

AWS_JENKINS_BUCKET =
"bosh-jenkins-artifacts"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::SettingsSetter

#setting, #with_setting

Methods included from Helpers::Settings

#backup_current_settings_file, #migrate_old_settings, #migrate_old_ssh_keys, #migrate_old_ssh_keys?, #save_settings!, #settings, #settings_dir, #settings_path, #settings_ssh_dir

Methods included from Helpers::FogSetup

#fog_compute, #fog_config, #fog_config_path, #reset_fog_compute

Instance Attribute Details

#fog_credentialsObject (readonly)

Returns the value of attribute fog_credentials.



23
24
25
# File 'lib/bosh-bootstrap/cli.rb', line 23

def fog_credentials
  @fog_credentials
end

#serverObject (readonly)

Returns the value of attribute server.



24
25
26
# File 'lib/bosh-bootstrap/cli.rb', line 24

def server
  @server
end

Instance Method Details

#deployObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/bosh-bootstrap/cli.rb', line 32

def deploy
  migrate_old_settings
  load_deploy_options # from method_options above

  deploy_stage_1_choose_infrastructure_provider
  load_provider_specific_options

  deploy_stage_2_bosh_configuration
  deploy_stage_3_create_allocate_inception_vm
  deploy_stage_4_prepare_inception_vm
  deploy_stage_5_salted_password
  deploy_stage_6_download_micro_bosh
  deploy_stage_7_deploy_micro_bosh
  deploy_stage_8_setup_new_bosh
end

#moshObject



97
98
99
100
# File 'lib/bosh-bootstrap/cli.rb', line 97

def mosh
  migrate_old_settings
  open_mosh_session
end

#ssh(cmd = nil) ⇒ Object



77
78
79
80
# File 'lib/bosh-bootstrap/cli.rb', line 77

def ssh(cmd=nil)
  migrate_old_settings
  run_ssh_command_or_open_tunnel(cmd)
end

#tmuxObject



87
88
89
90
# File 'lib/bosh-bootstrap/cli.rb', line 87

def tmux
  migrate_old_settings
  run_ssh_command_or_open_tunnel(["-t", "tmux attach || tmux new-session"])
end

#upgrade_inceptionObject



50
51
52
53
54
55
56
# File 'lib/bosh-bootstrap/cli.rb', line 50

def upgrade_inception
  migrate_old_settings
  load_deploy_options # from method_options above

  setup_server
  upgrade_inception_stage_1_prepare_inception_vm
end