Class: Pvectl::Commands::FeatureContainer

Inherits:
Object
  • Object
show all
Includes:
FeatureCommand
Defined in:
lib/pvectl/commands/feature_container.rb

Overview

Handler for the ‘pvectl feature ct` command.

Queries whether a Proxmox feature (clone, snapshot, copy) is available for an LXC container. The LXC feature endpoint returns only hasFeature (no nodes list), so the nodes column is always empty.

Examples:

Check whether container 200 supports snapshot

pvectl feature ct 200 snapshot

Constant Summary collapse

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

Constants included from FeatureCommand

Pvectl::Commands::FeatureCommand::VALID_FEATURES

Method Summary

Methods included from FeatureCommand

#execute, included, #initialize