Class: HammerCLIKatello::ContentViewVersion::PromoteCommand

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

Instance Method Summary collapse

Methods included from LifecycleEnvironmentNameMapping

included

Methods included from ResolverCommons

included

Instance Method Details

#environment_search_optionsObject



151
152
153
154
155
156
157
158
159
# File 'lib/hammer_cli_katello/content_view_version.rb', line 151

def environment_search_options
  {
    "option_id" => options["option_to_environment_id"],
    "option_name" => options["option_to_environment_name"],
    "option_organization_id" => options["option_organization_id"],
    "option_organization_name" => options["option_organization_name"],
    "option_organization_label" => options["option_organization_label"]
  }
end

#request_paramsObject



161
162
163
164
165
166
# File 'lib/hammer_cli_katello/content_view_version.rb', line 161

def request_params
  params = super
  params['environment_ids'] = [resolver.lifecycle_environment_id(environment_search_options)]
  params['force'] = option_force?
  params
end