Sha256: e3b4df23b5e33bc7adf17ed0d0093c4b24fc404b49faba613450546053dc72f8

Contents?: true

Size: 764 Bytes

Versions: 147

Compression:

Stored size: 764 Bytes

Contents

module Actions
  module Katello
    module ContentView
      class EnvironmentCreate < Actions::Base
        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

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

Version data entries

147 entries across 147 versions & 1 rubygems

Version Path
katello-3.18.5 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.4 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.3.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.3 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.3 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.1.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.0 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.16.2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.0.rc2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.0.rc2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.0 app/lib/actions/katello/content_view/environment_create.rb
katello-3.18.0.rc1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.0.rc2.2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.17.0.rc2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.16.1.2 app/lib/actions/katello/content_view/environment_create.rb