Class: Inception::Cli

Instance Method Summary collapse

Methods included from Inception::CliHelpers::PrepareDeploySettings

#default_key_pair_name, #default_server_name, #private_key_path_for_inception, #provision_or_reuse_public_ip_address_for_inception, #recreate_key_pair_for_inception, #recreate_private_key_file_for_inception, #update_git_config, #validate_deploy_settings

Methods included from Inception::CliHelpers::Settings

#migrate_old_settings, #save_settings!, #settings, #settings_dir, #settings_path, #settings_ssh_dir

Methods included from Inception::CliHelpers::Provider

#fog_compute, #provider_client

Methods included from Inception::CliHelpers::Interactions

#bold, #clear, #cyan, #green, #hl, #red, #yellow

Methods included from Inception::CliHelpers::Infrastructure

#choose_fog_provider, #choose_provider, #configure_provider, #confirm_infrastructure, #fog_config, #fog_config_path, #setup_provider_credentials, #valid_infrastructure?

Methods included from Inception::CliHelpers::Display

#confirm, #error, #header

Instance Method Details

#deleteObject



39
40
41
42
# File 'lib/inception/cli.rb', line 39

def delete
  migrate_old_settings
  perform_delete(options[:"non-interactive"])
end

#deployObject



29
30
31
32
33
34
35
# File 'lib/inception/cli.rb', line 29

def deploy
  migrate_old_settings
  configure_provider
  prepare_deploy_settings
  perform_deploy
  converge_cookbooks
end

#ssh(cmd = nil) ⇒ Object



48
49
50
51
# File 'lib/inception/cli.rb', line 48

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

#tmuxObject



58
59
60
61
# File 'lib/inception/cli.rb', line 58

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