Class: Command::CrowbarGetBarclampsList

Inherits:
CrowbarCommand show all
Defined in:
lib/command/crowbar_get_barclamps_list.rb

Overview

Allows to get the list of barclamps

Author:

  • mbretaud

Instance Attribute Summary

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ CrowbarGetBarclampsList

Default constructor



17
18
19
20
# File 'lib/command/crowbar_get_barclamps_list.rb', line 17

def initialize(logger)
  super(logger)
  @logger.info("Command::CrowbarGetBarclampsList   initialize the parameters...")
end

Instance Method Details

#execObject

Run the command on receiver.

Returns:

  • The list of Barclamps



25
26
27
# File 'lib/command/crowbar_get_barclamps_list.rb', line 25

def exec()
  return @receiver.crowbar_get_barclamps_list()
end