Skip to content

Commit

Permalink
Asset.path is ambiguous, now should use "halo" (host asset location)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed Jul 11, 2024
1 parent f3fd8c3 commit 771cd06
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lib/Bastion/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def asset(self):
@property
def zolo(self):
"""
zolo ("zone location") is the path to this including its zone.
zolo ("zone location") is the logical path to this including its zone.
"""
return pathlib.PurePosixPath(self.zone) / self.asset

Expand Down Expand Up @@ -162,12 +162,12 @@ def RDN(self):
self._RDN = self.badge
return self._RDN

@property
def path(self):
"""
I answer the local (host) file system path to this asset.
"""
return self.zone.root / pathlib.Path(self.name)
# @property
# def path(self):
# """
# I answer the local (host) file system path to this asset.
# """
# return self.zone.root / pathlib.Path(self.name)

@property
def CURIE(self):
Expand All @@ -187,6 +187,14 @@ def badge(self):
"""
return self.ARK.badge

@property
def halo(self):
"""
host asset location (halo)
The local (relative to the host) file system path to the asset.
"""
return self.zone.root / pathlib.Path(self.name)

@property
def zolo(self):
return self.ARK.zolo
Expand Down

0 comments on commit 771cd06

Please sign in to comment.