Class: Command::ClusterLs
- Inherits:
-
CrowbarVclusterCommand
- Object
- BasicCommand
- CrowbarCommand
- CrowbarVclusterCommand
- Command::ClusterLs
- Defined in:
- lib/command/cluster_ls.rb
Overview
display a list of cluster
Instance Attribute Summary
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#exec ⇒ Object
Method who return a List of cluster.
-
#initialize(vcluster_name, proposal_name) ⇒ ClusterLs
constructor
Default constructor.
Constructor Details
#initialize(vcluster_name, proposal_name) ⇒ ClusterLs
Default constructor.
17 18 19 20 21 22 |
# File 'lib/command/cluster_ls.rb', line 17 def initialize(vcluster_name, proposal_name) super() @logger.info("Command::ClusterLs initialize the parameters...") @vcluster_name = vcluster_name @proposal_name = proposal_name end |
Instance Method Details
#exec ⇒ Object
Method who return a List of cluster
26 27 28 |
# File 'lib/command/cluster_ls.rb', line 26 def exec() return @receiver.(@vcluster_name, @proposal_name) end |