Class: Actions::Katello::Repository::IndexModuleStreams

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

Instance Method Summary collapse

Instance Method Details

#plan(repository) ⇒ Object



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

def plan(repository)
  plan_self(:user_id => ::User.current.id, :id => repository.id)
end

#runObject



9
10
11
12
# File 'app/lib/actions/katello/repository/index_module_streams.rb', line 9

def run
  repo = ::Katello::Repository.find(input[:id])
  ::Katello::ModuleStream.import_for_repository(repo)
end