Class: HubStore::Storage::Import
- Inherits:
-
Object
- Object
- HubStore::Storage::Import
- Defined in:
- lib/hub_store/storage/import.rb
Instance Method Summary collapse
-
#initialize(repo:, since: nil) ⇒ Import
constructor
A new instance of Import.
- #run(&block) ⇒ Object
Constructor Details
#initialize(repo:, since: nil) ⇒ Import
Returns a new instance of Import.
7 8 9 10 |
# File 'lib/hub_store/storage/import.rb', line 7 def initialize(repo:, since: nil) @repo = repo @since = since end |
Instance Method Details
#run(&block) ⇒ Object
12 13 14 |
# File 'lib/hub_store/storage/import.rb', line 12 def run(&block) HubLink::Importer.run(repo: repo, since: since, resources: RESOURCES, &block) end |