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.2.0 app/lib/actions/katello/content_view/environment_create.rb
katello-3.2.0.rc3 app/lib/actions/katello/content_view/environment_create.rb
katello-3.2.0.rc2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.2.0.rc1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.1.0.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.1.0 app/lib/actions/katello/content_view/environment_create.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.2 app/lib/actions/katello/content_view/environment_create.rb
katello-2.4.5 app/lib/actions/katello/content_view/environment_create.rb
katello-3.1.0.rc1 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.1 app/lib/actions/katello/content_view/environment_create.rb
katello-2.4.4 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.0 app/lib/actions/katello/content_view/environment_create.rb
katello-2.4.3 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.0.rc7 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.0.rc5 app/lib/actions/katello/content_view/environment_create.rb
katello-2.4.2 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.0.rc4 app/lib/actions/katello/content_view/environment_create.rb
katello-3.0.0.rc3 app/lib/actions/katello/content_view/environment_create.rb