Module: HammerCLIForeman::Image::ComputeResourceOptions

Included in:
AvailableImagesCommand, CreateCommand, DeleteCommand, InfoCommand, ListCommand, UpdateCommand
Defined in:
lib/hammer_cli_foreman/image.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/hammer_cli_foreman/image.rb', line 14

def self.included(base)
  base.option "--compute-resource", "COMPUTE_RESOURCE_NAME", "Compute resource's name"
  base.option "--compute-resource-id", "COMPUTE_RESOURCE_ID", "Compute resource's id"
  base.apipie_options :without => [:compute_resource_id, :id]

  base.validate_options do
    any(:option_compute_resource_id, :option_compute_resource).required
  end
end