Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
m-alisafaee committed Sep 21, 2021
1 parent 80ea6cf commit b2e4986
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions renku/core/management/migrations/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import pyld

from renku import LocalClient
from renku.core.models.jsonld import read_yaml

OLD_METADATA_PATH = "metadata.yml"
Expand All @@ -52,23 +53,11 @@ class MigrationOptions(NamedTuple):
type: MigrationType = MigrationType.ALL


class MigrationContext:
class MigrationContext(NamedTuple):
"""Context containing required migration information."""

def __init__(self, client, options: MigrationOptions):
self._client = client
self._options = options
self._type = type

@property
def client(self):
"""Return migration's client."""
return self._client

@property
def options(self) -> MigrationOptions:
"""Return migration's options."""
return self._options
client: LocalClient
options: MigrationOptions


def generate_url_id(client, url_str, url_id):
Expand Down

0 comments on commit b2e4986

Please sign in to comment.