WIP: Set ArtifactCache for push/pull correctly when `--remote` is used
Description
This fixes the bug in #798 so user will be able to specify --remote for their bst pull operations and initialization won't fail due to Push not allowed errors - because that was never asked for.
Changes proposed in this merge request:
-
Similar to artifact_remote_url, addartifact_remote_can_pushtoStream._load()and use that inArtifactCache.setup_remotes(). See first commit. -
Refactor the codepath, starting from second commit: This hopefully paves the way for multiple usages --remoteand making the future fix forbst push --remote(--cert etc. needs to be added to be actually usable) less hacky.
This merge request, when approved, will close: #798
Edited by Laurence Urhegyi