Class: Actions::Katello::Repository::CapsuleGenerateAndSync

Inherits:
Base
  • Object
show all
Defined in:
app/lib/actions/katello/repository/capsule_generate_and_sync.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



5
6
7
# File 'app/lib/actions/katello/repository/capsule_generate_and_sync.rb', line 5

def humanized_name
  _("Sync Repository on Capsule(s)")
end

#plan(repo) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'app/lib/actions/katello/repository/capsule_generate_and_sync.rb', line 9

def plan(repo)
  if repo.node_syncable?
    concurrence do
      ::Katello::CapsuleContent.with_environment(repo.environment).each do |capsule_content|
        plan_action(Katello::CapsuleContent::Sync, capsule_content, repository: repo)
      end
    end
  end
end