Class: Uffizzi::Cli::Cluster

Inherits:
Thor
  • Object
show all
Includes:
ApiClient
Defined in:
lib/uffizzi/cli/cluster.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Methods included from ApiClient

#bulk_create_secrets, #check_can_install, #check_credential, #create_access_token, #create_account_controller_settings, #create_ci_session, #create_cluster, #create_credential, #create_deployment, #create_project, #create_session, #delete_account_controller_settings, #delete_cluster, #delete_credential, #delete_deployment, #delete_project, #delete_secret, #deploy_containers, #describe_compose_file, #describe_deployment, #destroy_session, #fetch_account, #fetch_account_projects, #fetch_accounts, #fetch_credentials, #fetch_deployment_service_logs, #fetch_deployment_services, #fetch_deployments, #fetch_events, #fetch_project, #fetch_projects, #fetch_secrets, #get_access_token, #get_account_clusters, #get_account_controller_settings, #get_activity_items, #get_cluster, #get_cluster_ingresses, #get_k8s_container_description, #get_project_clusters, #scale_down_cluster, #scale_up_cluster, #set_compose_file, #sync_cluster, #unset_compose_file, #update_account, #update_account_controller_settings, #update_credential, #update_deployment, #validate_compose_file

Methods included from ApiRoutes

#access_token_url, #access_tokens_url, #account_can_install_uri, #account_clusters_uri, #account_controller_setting_uri, #account_controller_settings_uri, #account_projects_uri, #account_uri, #accounts_uri, #activity_items_uri, #browser_sign_in_url, #check_credential_uri, #ci_session_uri, #cluster_uri, #compose_file_uri, #create_projects_uri, #credential_uri, #credentials_uri, #deploy_containers_uri, #deployment_uri, #deployments_uri, #events_uri, #k8s_container_description_uri, #preview_service_logs_uri, #preview_services_uri, #project_cluster_ingresses_uri, #project_clusters_uri, #project_uri, #projects_uri, #scale_down_cluster_uri, #scale_up_cluster_uri, #secret_uri, #secrets_uri, #session_uri, #sync_cluster_uri, #validate_compose_file_uri

Instance Method Details

#create(name = nil) ⇒ Object



38
39
40
# File 'lib/uffizzi/cli/cluster.rb', line 38

def create(name = nil)
  run('create', { name: name })
end

#delete(name) ⇒ Object



50
51
52
# File 'lib/uffizzi/cli/cluster.rb', line 50

def delete(name)
  run('delete', cluster_name: name)
end

#describe(name) ⇒ Object



44
45
46
# File 'lib/uffizzi/cli/cluster.rb', line 44

def describe(name)
  run('describe', cluster_name: name)
end

#disconnectObject



65
66
67
# File 'lib/uffizzi/cli/cluster.rb', line 65

def disconnect
  run('disconnect')
end

#listObject



26
27
28
# File 'lib/uffizzi/cli/cluster.rb', line 26

def list
  run('list')
end

#sleep(name = nil) ⇒ Object



70
71
72
# File 'lib/uffizzi/cli/cluster.rb', line 70

def sleep(name = nil)
  run('sleep', cluster_name: name)
end

#update_kubeconfig(name) ⇒ Object



58
59
60
# File 'lib/uffizzi/cli/cluster.rb', line 58

def update_kubeconfig(name)
  run('update-kubeconfig', cluster_name: name)
end

#wake(name = nil) ⇒ Object



75
76
77
# File 'lib/uffizzi/cli/cluster.rb', line 75

def wake(name = nil)
  run('wake', cluster_name: name)
end