Class: Command::ClusterInfo

Inherits:
CrowbarVclusterCommand show all
Defined in:
lib/command/cluster_info.rb

Overview

Display a information’s cluster

Instance Attribute Summary

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Constructor Details

#initialize(vcluster_name, proposal_name) ⇒ ClusterInfo

Returns a new instance of ClusterInfo.

Parameters:

  • vcluster_name (String)

    The cluster name.

  • proposal_name (String)

    The proposal name.

Author:

  • mbretaud



17
18
19
20
21
22
# File 'lib/command/cluster_info.rb', line 17

def initialize(vcluster_name, proposal_name)
  super()
  @logger.info("Command::ClusterInfo   initialize the parameters...")
  @vcluster_name = vcluster_name
  @proposal_name = proposal_name
end

Instance Method Details

#execObject

Method who call crowbar_receiver for display an information’s cluster



26
27
28
# File 'lib/command/cluster_info.rb', line 26

def exec()
  return @receiver.crowbar_vcluster_info(@vcluster_name, @proposal_name)
end