Sha256: cc497d368e5791366d72417c366baf6ea48b6a1a870cc94628f2247c47ac69bf

Contents?: true

Size: 598 Bytes

Versions: 136

Compression:

Stored size: 598 Bytes

Contents

module Actions
  module Katello
    module ContentView
      class AddToEnvironment < Actions::Base
        def plan(content_view_version, environment)
          content_view = content_view_version.content_view
          if (cve = content_view.content_view_environment(environment))
            content_view_version.content_view_environments << cve
          else
            cve = content_view.add_environment(environment, content_view_version)
            plan_action(ContentView::EnvironmentCreate, cve)
          end
          content_view_version.save!
        end
      end
    end
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
katello-3.11.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.11.0 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.11.0.rc2 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.11.0.rc1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.10.0 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.10.0.rc1.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.9.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.10.0.rc1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.9.0 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.8.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.9.0.rc2 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.9.0.rc1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.7.1.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.7.1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.8.0 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.8.0.rc3 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.8.0.rc2 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.7.0 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.8.0.rc1 app/lib/actions/katello/content_view/add_to_environment.rb
katello-3.7.0.rc2 app/lib/actions/katello/content_view/add_to_environment.rb