Class: Pvectl::Commands::RestartContainer

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

Overview

Handler for the pvectl restart container command.

Restarts one or more LXC containers (reboot).

Examples:

Restart a single container

pvectl restart container 200

Constant Summary collapse

OPERATION =
:restart

Method Summary

Methods included from ContainerLifecycleCommand

#build_presenter, #build_repository, #build_selector, #build_service, included, #resource_id_label, #resource_label, #supported_resources

Methods included from ResourceLifecycleCommand

#apply_selectors, #build_presenter, #build_repository, #build_selector, #build_service, #confirm_operation, #determine_exit_code, #execute, included, #initialize, #load_config, #no_resources_found, #operation_name, #output_results, #perform_operation, #resolve_resources, #resource_id_label, #resource_label, #selector_strings, #service_options, #supported_resources, #usage_error