A Flux package instance class. This provides basic information fields and dependencies.

Summary

Methods

Specifies that a package is dependent on another package or plugin.
Class constructor.

Methods

PackageInstance:depends(what)

shared lib/package_instance.lua:54

Specifies that a package is dependent on another package or plugin. Merely adds to the dependency list. Can be called with either : or . When called with a dot, the dependency is added to the package that is currently being included (the PACKAGE global).

Package:describe(function(s)
  s.depends 'sfs'
  s.depends 'lib/flux.lua'
end)

Parameters

  • what String name of a package, or path to a .lua file inside this package

PackageInstance:init(file_path, lib_path, full_path)

shared lib/package_instance.lua:16

Class constructor. Takes the file path, file name and folder path as the arguments.

Parameters

  • file_path String path to the package's packagespec.lua
  • lib_path String name of the package, as it was given to Package:include
  • full_path String path to the package's folder, with a trailing slash

Defined in