Class: Inception::Cli
- Inherits:
-
Thor
- Object
- Thor
- Inception::Cli
- Includes:
- FileUtils, Inception::CliHelpers::Display, Inception::CliHelpers::Interactions, Inception::CliHelpers::PrepareDeploySettings, Inception::CliHelpers::Provider, Inception::CliHelpers::Settings
- Defined in:
- lib/inception/cli.rb
Instance Method Summary collapse
-
#delete ⇒ Object
method_option :“non-interactive”, aliases: [“-n”], type: :boolean, desc: “Don’t ask questions, just get crankin’”.
- #deploy ⇒ Object
- #ssh(cmd = nil) ⇒ Object
- #tmux ⇒ Object
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, #reload_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::Display
Instance Method Details
#delete ⇒ Object
method_option :“non-interactive”, aliases: [“-n”], type: :boolean, desc: “Don’t ask questions, just get crankin’”
40 41 42 43 |
# File 'lib/inception/cli.rb', line 40 def delete migrate_old_settings perform_delete([:"non-interactive"]) end |
#deploy ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/inception/cli.rb', line 30 def deploy migrate_old_settings configure_provider prepare_deploy_settings perform_deploy converge_cookbooks end |
#ssh(cmd = nil) ⇒ Object
49 50 51 52 |
# File 'lib/inception/cli.rb', line 49 def ssh(cmd=nil) migrate_old_settings run_ssh_command_or_open_tunnel(cmd) end |
#tmux ⇒ Object
59 60 61 62 |
# File 'lib/inception/cli.rb', line 59 def tmux migrate_old_settings run_ssh_command_or_open_tunnel(["-t", "tmux attach || tmux new-session"]) end |