Class: Pvectl::Commands::TemplateContainer

Inherits:
Object
  • Object
show all
Includes:
TemplateCommand
Defined in:
lib/pvectl/commands/template_container.rb

Overview

Handler for the ‘pvectl template container` command.

Converts one or more containers to templates (irreversible). Always requires confirmation (–yes to skip). Running containers must be stopped first or use –force.

Examples:

Convert a single container

pvectl template container 200 --yes

Convert using ct alias

pvectl template ct 200 --yes

Force convert running container

pvectl template container 200 --force --yes

Constant Summary collapse

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

Method Summary

Methods included from TemplateCommand

included

Methods included from IrreversibleCommand

#execute, included, #initialize