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



251
252
253
254
255
256
257
258
259
# File 'lib/hammer_cli_katello/content_view.rb', line 251

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

#request_paramsObject



261
262
263
264
265
266
267
# File 'lib/hammer_cli_katello/content_view.rb', line 261

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