Class: HammerCLIKatello::ContentViewPuppetModule::DeleteCommand

Inherits:
DeleteCommand
  • Object
show all
Includes:
OrganizationOptions
Defined in:
lib/hammer_cli_katello/content_view_puppet_module.rb

Instance Method Summary collapse

Methods included from OrganizationOptions

included

Methods included from ResolverCommons

included

Instance Method Details

#all_optionsObject



62
63
64
65
66
67
68
69
# File 'lib/hammer_cli_katello/content_view_puppet_module.rb', line 62

def all_options
  if super['option_id']
    super.merge(HammerCLI.option_accessor_name("id") =>
                resolve_puppet_module_id_from_uuid(super))
  else
    super
  end
end

#resolve_puppet_module_id_from_uuid(options) ⇒ Object



56
57
58
59
60
# File 'lib/hammer_cli_katello/content_view_puppet_module.rb', line 56

def resolve_puppet_module_id_from_uuid(options)
  uuid = options.delete HammerCLI.option_accessor_name("id")
  options[HammerCLI.option_accessor_name("uuid")] = uuid
  resolver.content_view_puppet_module_id(options)
end