Sha256: d662797da1218014d1007453f54613017c3133679dfcf973d7da44805e677a8b

Contents?: true

Size: 935 Bytes

Versions: 5

Compression:

Stored size: 935 Bytes

Contents

#
# Copyright 2013 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

module KatelloForemanEngine
  module Actions

    class ChangesetPromote < Dynflow::Action

      def self.subscribe
        Katello::Actions::ChangesetPromote
      end

      def plan(changeset)
        changeset.affected_repos.each do |repo|
          repo = repo.get_clone(changeset.environment)
          plan_action(RepositoryChange, repo)
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.11 lib/katello_foreman_engine/actions/changeset_promote.rb
katello-foreman-engine-0.0.7 lib/katello_foreman_engine/actions/changeset_promote.rb
katello-foreman-engine-0.0.6 lib/katello_foreman_engine/actions/changeset_promote.rb
katello-foreman-engine-0.0.3 lib/katello_foreman_engine/actions/changeset_promote.rb
katello-foreman-engine-0.0.2 lib/katello_foreman_engine/actions/changeset_promote.rb