Project

General

Profile

« Previous | Next » 

Revision 9e930ef0

Added by Ivan Necas about 10 years ago

Rename the actions to follow the names of the files

View differences:

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|
engines/fort/app/lib/fort/actions/repository_create.rb
module Fort
module Actions
class RepositoryCreateAction < ::Actions::Pulp::Abstract
class RepositoryCreate < ::Actions::Pulp::Abstract
def self.subscribe
Katello::Actions::RepositoryCreate
......
end
def run
repo = Repository.find(input['id'])
repo = ::Katello::Repository.find(input['id'])
Node.with_environment(repo.environment).each do |node|
node.update_environments
end

Also available in: Unified diff