asset_content()

def asset_content(content, destination) -> dict

Creates 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 asset
  • destination: 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) -> dict

Creates a hard-link asset that can be passed in the assets list to checkout_add_any_assets()

Args

  • source: string: source of the hard link
  • destination: string: destination of the hard link

Returns

dict that can be passed to checkout_add_any_assets()

asset_home()

def asset_home(source) -> dict

Creates 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/ and linked into the workspace at the same relative path as source.

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) -> dict

Creates a soft-link asset that can be passed in the assets list to checkout_add_any_assets()

Args

  • source: string: source of the hard link
  • destination: string: destination of the hard link

Returns

dict that can be passed to checkout_add_any_assets()

asset_which()

def asset_which(which, destination) -> dict

Creates an asset by using which that can be passed in the assets list to checkout_add_any_assets()

Args

  • which: string: argument to pass to which to discover the program
  • destination: string: destination of the asset

Returns

dict that can be passed to checkout_add_any_assets()