Major refactoring: access to context happens in methods. #13

This commit is contained in:
Andrey Smirnov
2014-04-05 16:10:51 +04:00
parent 400d0da7d4
commit 2c3553ef0b
31 changed files with 333 additions and 265 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func aptlyPublishDrop(cmd *commander.Command, args []string) error {
prefix = args[1]
}
err = context.collectionFactory.PublishedRepoCollection().Remove(context.publishedStorage, prefix, distribution)
err = context.CollectionFactory().PublishedRepoCollection().Remove(context.PublishedStorage(), prefix, distribution)
if err != nil {
return fmt.Errorf("unable to remove: %s", err)
}