Skip to content

Bundle

[Source]

Encapsulation of a Bundle + Lock file pair, including all file activities for those files.

class ref Bundle

Constructors

create

[Source]

new iso create(
  dir': FilePath val,
  log': Logger[String val] val)
: Bundle iso^

Parameters

Returns


load

[Source]

new iso load(
  dir': FilePath val,
  log': Logger[String val] val)
: Bundle iso^ ?

Parameters

Returns


Public fields

let dir: FilePath val

[Source]


let log: Logger[String val] val

[Source]


let info: InfoData ref

[Source]


let packages: Array[String val] ref

[Source]


let deps: HashMap[String val, Dep ref, HashEq[String val] val] ref

[Source]


let scripts: (ScriptsData ref | None val)

[Source]


var modified: Bool val

[Source]


Public Functions

name

[Source]

fun box name()
: String val

Returns


bundle_filepath

[Source]

fun box bundle_filepath()
: FilePath val ?

Returns


lock_filepath

[Source]

fun box lock_filepath()
: FilePath val ?

Returns


add_dep

[Source]

fun ref add_dep(
  locator: String val,
  version: String val,
  revision: String val)
: Dep ref

Parameters

Returns


remove_dep

[Source]

fun ref remove_dep(
  locator: String val)
: None val ?

Parameters

Returns


dep_revision

[Source]

Returns the revision for a dep from this bundle's lock.

fun box dep_revision(
  locator: String val)
: String val

Parameters

Returns


lock_revision

[Source]

Records the revision for a dep into this bundle's lock.

fun ref lock_revision(
  locator: String val,
  revision: String val)
: None val

Parameters

Returns


bundle_json

[Source]

fun box bundle_json()
: JsonObject ref

Returns


lock_json

[Source]

fun box lock_json()
: JsonObject ref

Returns


save

[Source]

fun ref save()
: None val ?

Returns