lucee.Component
commandbox.system.endpoints.ForgeBox
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am the ForgeBox endpoint. I wrap CFML's coolest package repository EVER!
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
artifactService
|
true
|
false
|
|
any
|
configService
|
true
|
false
|
|
any
|
consoleLogger
|
true
|
false
|
|
any
|
CR
|
true
|
false
|
|
any
|
endpointService
|
true
|
false
|
|
any
|
fileEndpoint
|
true
|
false
|
|
any
|
fileSystemUtil
|
true
|
false
|
|
any
|
forgeBox
|
true
|
false
|
|
any
|
lexEndpoint
|
true
|
false
|
|
string
|
namePrefixes
|
true
|
false
|
|
any
|
packageService
|
true
|
false
|
|
any
|
pathPatternMatcher
|
true
|
false
|
|
any
|
semanticVersion
|
true
|
false
|
|
any
|
tempDir
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
string
|
createUser(string username, string password, string email, string firstName, string lastName)
Create a new user in ForgeBox. |
private any
|
createZipFromPath(string path)
|
any
|
findSatisfyingVersion(string slug, string version, [struct entryData])
Figures out what version of a package would be installed with a given semver range without actually going through the installation. |
private array
|
generateIgnorePatterns([any boxJSON])
|
any
|
getAPIToken()
Returns the correct API token based on the name of this forgebox-based endpoint. |
any
|
getAPITokens()
Returns the struct of all logged in tokens based on the name of this forgebox-based endpoint. |
string
|
getArtifactService()
|
string
|
getConfigService()
|
string
|
getConsoleLogger()
|
string
|
getCR()
|
any
|
getDefaultName(string package)
Get default name for a package. |
string
|
getEndpointService()
|
string
|
getFileEndpoint()
|
string
|
getFileSystemUtil()
|
string
|
getForgeBox()
|
string
|
getLexEndpoint()
|
string
|
getNamePrefixes()
|
private any
|
getPackage([any slug], [any version], [any verbose='false'])
Get a package path location. |
string
|
getPackageService()
|
string
|
getPathPatternMatcher()
|
string
|
getSemanticVersion()
|
string
|
getTempDir()
|
any
|
getUpdate(string package, string version, [boolean verbose='false'])
Get an update for a package. |
string
|
getWirebox()
|
string
|
login(string userName, string password)
Login a user into ForgeBox. |
any
|
parseSlug(string package)
Parses just the slug portion out of an endpoint ID. |
any
|
parseVersion(string package)
Parses just the version portion out of an endpoint ID. |
any
|
publish(string path, [string zipPath=''], [boolean force='false'])
Publish a package in ForgeBox. |
private array
|
readGitIgnores()
|
string
|
resolvePackage(string package, [boolean verbose='false'])
Resolve a package. |
any
|
setArtifactService(any artifactService)
|
any
|
setConfigService(any configService)
|
any
|
setConsoleLogger(any consoleLogger)
|
any
|
setCR(any CR)
|
any
|
setDefaultAPIToken(string APIToken)
Set the default APIToken to be used for this forgebox-based endpoint. |
any
|
setEndpointService(any endpointService)
|
any
|
setFileEndpoint(any fileEndpoint)
|
any
|
setFileSystemUtil(any fileSystemUtil)
|
any
|
setForgeBox(any forgeBox)
|
any
|
setLexEndpoint(any lexEndpoint)
|
any
|
setNamePrefixes(string namePrefixes)
|
any
|
setPackageService(any packageService)
|
any
|
setPathPatternMatcher(any pathPatternMatcher)
|
any
|
setSemanticVersion(any semanticVersion)
|
any
|
setTempDir(any tempDir)
|
any
|
setWirebox(any wirebox)
|
any
|
storeAPIToken(string username, string APIToken)
Store a new API Token. |
any
|
unpublish(string path, [string version=''])
Unpublish a package in ForgeBox. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - ArtifactServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - configServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - logbox:logger:consoleserializable - trueaccess - publicrequired - falsereturntype - anyinject - CR@constantsserializable - trueaccess - publicrequired - falsereturntype - anyinject - endpointServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - commandbox.system.endpoints.Fileserializable - trueaccess - publicrequired - falsereturntype - anyinject - FileSystemserializable - trueaccess - publicrequired - falsereturntype - anyinject - ForgeBoxserializable - trueaccess - publicrequired - falsereturntype - anyinject - commandbox.system.endpoints.Lexserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - packageServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - provider:pathPatternMatcher@globberserializable - trueaccess - publicrequired - falsereturntype - anyinject - provider:semanticVersion@semverserializable - trueaccess - publicrequired - falsereturntype - anyinject - tempDir@constantsserializable - trueaccess - publicrequired - falsereturntype - anyinject - wireboxserializable - true| Method Detail |
|---|
Create a new user in ForgeBox
createUser
in interface
IEndpointInteractive
username - ForgeBox usernamepassword - The passwordemail - ForgeBox emailfirstName - First namelastName - Last NamepathFigures out what version of a package would be installed with a given semver range without actually going through the installation.
slug - Slug of packageversion - Version range to satisfyentryData - Optional struct of entryData which skips the ForgeBox call.boxJSONReturns the correct API token based on the name of this forgebox-based endpoint
Returns the struct of all logged in tokens based on the name of this forgebox-based endpoint
Get default name for a package
getDefaultName
in interface
IEndpoint
package - The package to resolveGet a package path location
slug - The package slugversion - The package versionverbose - Verbose flag or silent, defaults to falseGet an update for a package
getUpdate
in interface
IEndpoint
package - The package nameversion - The package versionverbose - Verbose flag or silent, defaults to falseLogin a user into ForgeBox
login
in interface
IEndpointInteractive
userName - The usernamepassword - The password to useParses just the slug portion out of an endpoint ID
package - The full endpointID like foo@1.0.0Parses just the version portion out of an endpoint ID
package - The full endpointID like foo@1.0.0Publish a package in ForgeBox
publish
in interface
IEndpointInteractive
path - The path to publishzipPathforceResolve a package
resolvePackage
in interface
IEndpoint
package - The package to resolveverbose - Verbose flag or silent, defaults to falseartifactServiceconfigServiceconsoleLoggerCRSet the default APIToken to be used for this forgebox-based endpoint
APITokenendpointServicefileEndpointfileSystemUtilforgeBoxlexEndpointnamePrefixespackageServicepathPatternMatchersemanticVersiontempDirwireboxStore a new API Token
usernameAPITokenUnpublish a package in ForgeBox
unpublish
in interface
IEndpointInteractive
path - The path to publishversion - The version to publish