Revision 9e930ef0
Added by Ivan Necas over 10 years ago
engines/fort/app/lib/fort/actions/changeset_promote.rb | ||
---|---|---|
module Fort
|
||
module Actions
|
||
|
||
class ChangesetPublishAction < ::Actions::Pulp::Abstract
|
||
class ChangesetPromote < ::Actions::Pulp::Abstract
|
||
|
||
def self.subscribe
|
||
Katello::Actions::ChangesetPromote
|
||
... | ... | |
end
|
||
|
||
def run
|
||
changeset = Changeset.find(input['id'])
|
||
changeset = ::Katello::Changeset.find(input['id'])
|
||
environment = changeset.environment
|
||
changeset.content_views.each do |view|
|
||
Node.with_environment(environment).each do |node|
|
Also available in: Unified diff
Rename the actions to follow the names of the files