A Quark is a folder of source code, a package. It may be cloned from a git repository, or maybe not. This class is used by the Quarks class and you will not usually want to use it directly.
name |
Quark name, git url or local path (absolute or relative) |
refspec | |
url | |
localPath |
this
alternate constructor
path |
this
alternate constructor
name | |
directoryEntry |
this
name | |
refspec | |
url | |
localPath |
this
private
dep | |
forQuark |
this
String
Based on the dependencies list in the quark file, returns an array of Quarks.
Array of Quark
Declared dependencies of this Quark and those of each dependency. This will check out all dependencies.
Array of Quarks
Lazily parses the quark file (if found) and caches it
Dictionary - the contents of the quark file
Git refspec (tag or sha hash)
this
Absolute path where the Quark is located
this
Summary text from the quark file
this
Git repository url. If not declared when creating, it will examine the checked out git source and get the origin.
this
Boolean
Boolean
Quarks that have git repos have a Git object that can be used for checking out, listing tags etc.
a Git object
private
argName | |
argUrl | |
argRefspec | |
argLocalPath |
this
this
this
Clone and checkout the url and refspec. Used by install and for switching versions.
this
String
returns the current branch name.
String or nil, if failed
Array of Strings
Evaluates the 'isCompatible' function in the quarkfile, if there is one. This allows a quarkfile to check its environment and raise an alarm before it gets installed and breaks something.
Boolean
Classes that are defined by this Quark
Array of Classes
Methods that this Quark defines that overwrite implementations in other packages including in Common.
Array of Methods
Open the help file. Either as specified in the quark file as 'schelp' or searches by the name of the quark.
this
After un/installing or checking out, state is set to changed. code smell: this is for the gui
Boolean
Runs the function hook
which is defined in the .quark
file. This can be used for running a function before or after installation, see Using Quarks: Hooks for more information. In case the function can not be executed properly a warning will be printed and the update or installation process will be stopped.
hook |
Name of function to run. |
this
stream |
this
private
this