Module: Pvectl::Commands::IrreversibleCommand::ClassMethods

Defined in:
lib/pvectl/commands/irreversible_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 command.

Parameters:

  • resource_type (String, nil)

    resource type (vm, container)

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

    resource identifiers

  • options (Hash)

    command options

  • global_options (Hash)

    global CLI options

Returns:

  • (Integer)

    exit code



29
30
31
# File 'lib/pvectl/commands/irreversible_command.rb', line 29

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