Module: Pvectl::Commands::SetVolume::ClassMethods

Included in:
Pvectl::Commands::SetVolume
Defined in:
lib/pvectl/commands/set_volume.rb

Overview

Class methods for command execution.

Instance Method Summary collapse

Instance Method Details

#execute(args, options, global_options) ⇒ Integer

Executes the set volume command.

Parameters:

  • args (Array<String>)

    command arguments

  • options (Hash)

    command options

  • global_options (Hash)

    global CLI options

Returns:

  • (Integer)

    exit code



28
29
30
# File 'lib/pvectl/commands/set_volume.rb', line 28

def execute(args, options, global_options)
  new(args, options, global_options).execute
end