Module: Pvectl::Commands::ResourceLifecycleCommand::ClassMethods

Defined in:
lib/pvectl/commands/resource_lifecycle_command.rb

Overview

Class methods added when the module is included.

Instance Method Summary collapse

Instance Method Details

#execute(resource_type, resource_ids, options, global_options) ⇒ Integer

Executes the lifecycle command.

Parameters:

  • resource_type (String, nil)

    resource type (vm, ct)

  • resource_ids (Array<String>, String, nil)

    resource identifiers

  • options (Hash)

    command options

  • global_options (Hash)

    global CLI options

Returns:

  • (Integer)

    exit code



36
37
38
# File 'lib/pvectl/commands/resource_lifecycle_command.rb', line 36

def execute(resource_type, resource_ids, options, global_options)
  new(resource_type, resource_ids, options, global_options).execute
end