Class: Pvectl::Commands::DeleteContainer

Inherits:
Object
  • Object
show all
Includes:
DeleteCommand
Defined in:
lib/pvectl/commands/delete_container.rb,
sig/pvectl/commands/delete_container.rbs

Overview

Handler for the pvectl delete container command.

Deletes one or more LXC containers from the cluster. Always requires confirmation (--yes to skip). Running containers must be stopped first or use --force.

Examples:

Delete a single container

pvectl delete container 200 --yes

Delete using ct alias

pvectl delete ct 200 --yes

Delete multiple containers

pvectl delete container 200 201 202 --yes

Force delete running container

pvectl delete container 200 --force --yes

Constant Summary collapse

RESOURCE_TYPE =
:container
SUPPORTED_RESOURCES =
%w[container ct].freeze

Method Summary

Methods included from DeleteCommand

#apply_selectors, #confirm_operation, #determine_exit_code, #execute, included, #initialize, #load_config, #no_resources_found, #output_results, #perform_operation, #resolve_resources, #resource_type_symbol, #selector_strings, #service_options, #supported_resource?, #supported_types, #usage_error

Methods included from IrreversibleCommand

#apply_selectors, #build_presenter, #build_repository, #confirm_operation, #determine_exit_code, #execute, included, #initialize, #load_config, #no_resources_found, #output_results, #perform_operation, #perform_service_call, #resolve_resources, #resource_type_symbol, #selector_strings, #service_options, #supported_resource?, #supported_types, #usage_error