asset_content()
def asset_content(content, destination) -> dictCreates an asset (file from a starlark string) that can be passed in the assets list to checkout_add_any_assets()
Args
content: string: content for populating the assetdestination: string: destination of the asset
Returns
dict that can be passed to checkout_add_any_assets()
asset_hard_link()
def asset_hard_link(source, destination) -> dictCreates a hard-link asset that can be passed in the assets list to checkout_add_any_assets()
Args
source: string: source of the hard linkdestination: string: destination of the hard link
Returns
dict that can be passed to checkout_add_any_assets()
asset_home()
def asset_home(source) -> dictCreates an asset by copying a file from $HOME into the spaces store and hard-linking it into the workspace.
The file is stored under .spaces/store/home/$USER/
Args
source: string: path relative to $HOME of the file to copy (e.g. “.ssh/config”)
Returns
dict that can be passed to checkout_add_any_assets()
asset_soft_link()
def asset_soft_link(source, destination) -> dictCreates a soft-link asset that can be passed in the assets list to checkout_add_any_assets()
Args
source: string: source of the hard linkdestination: string: destination of the hard link
Returns
dict that can be passed to checkout_add_any_assets()
asset_which()
def asset_which(which, destination) -> dictCreates an asset by using which that can be passed in the assets list to checkout_add_any_assets()
Args
which: string: argument to pass towhichto discover the programdestination: string: destination of the asset
Returns
dict that can be passed to checkout_add_any_assets()