Class: Actions::Katello::ContentView::EnvironmentCreate

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/content_view/environment_create.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



17
18
19
# File 'app/lib/actions/katello/content_view/environment_create.rb', line 17

def humanized_name
  _("Create")
end

#plan(content_view_environment) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/lib/actions/katello/content_view/environment_create.rb', line 5

def plan(content_view_environment)
  content_view_environment.save!
  if ::SETTINGS[:katello][:use_cp]
    content_view = content_view_environment.content_view
    plan_action(Candlepin::Environment::Create,
                organization_label: content_view.organization.label,
                cp_id:              content_view_environment.cp_id,
                name:               content_view_environment.label,
                description:        content_view.description)
  end
end