Class: HammerCLIKatello::ContentView::RemoveCommand

Inherits:
SingleResourceCommand
  • Object
show all
Includes:
HammerCLIForemanTasks::Async, LifecycleEnvironmentNameMapping, OrganizationOptions
Defined in:
lib/hammer_cli_katello/content_view.rb

Instance Method Summary collapse

Methods included from LifecycleEnvironmentNameMapping

included

Methods included from OrganizationOptions

included, #org_options

Methods included from ResolverCommons

included

Instance Method Details

#option_sourcesObject



298
299
300
301
302
303
304
305
306
# File 'lib/hammer_cli_katello/content_view.rb', line 298

def option_sources
  sources = super
  sources.find_by_name('IdResolution').insert_relative(
    :after,
    'IdParams',
    CVEnvParamsSource.new(self)
  )
  sources
end

#request_paramsObject



308
309
310
311
312
313
314
# File 'lib/hammer_cli_katello/content_view.rb', line 308

def request_params
  super.tap do |opts|
    %w(content_view_version_ids environment_ids).each do |key|
      opts[key] = opts[key].split(",") if opts[key] && opts[key].respond_to?(:split)
    end
  end
end