Sha256: a6f3d8b0c185d044268f7697713ac2eb43405bbd7515ea162708480959d95e5d

Contents?: true

Size: 695 Bytes

Versions: 22

Compression:

Stored size: 695 Bytes

Contents

module Actions
  module Katello
    module ContentView
      class EnvironmentCreate < Actions::Base
        def plan(content_view_environment)
          content_view_environment.save!
          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

        def humanized_name
          _("Create")
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.1.4 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.3 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.3 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.2 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.2 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.1.2 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.1.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0.rc2 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.1.0.rc1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.0 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/content_view/environment_create.rb
katello-4.0.0.rc3 app/lib/actions/katello/content_view/environment_create.rb