commandbox.system.endpoints

Class Git

lucee.Component
    extended by commandbox.system.endpoints.Git
All Implemented Interfaces:
IEndpoint
Direct Known Subclasses:
Gist , Git_HTTP , Git_HTTPS , Git_SSH , Github

Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I am the Git endpoint. I get packages from a Git URL. - git+ssh://git@github.com:user/repo.git#v1.0.27 - git+https://login@github.com/user/repo.git - git+http://login@github.com/user/repo.git - git+https://login@github.com/user/repo.git - git://github.com/user/repom.git#v1.0.27 If no is specified, then master is used. Also supports this shortcut syntax for GitHub repos install mygithubuser/myproject install github:mygithubuser/myproject

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Property Summary
    type property default serializable required
    any artifactService


    • access = public
    • returntype = any
    • inject = ArtifactService
    true false
    any consoleLogger


    • access = public
    • returntype = any
    • inject = logbox:logger:console
    true false
    any folderEndpoint


    • access = public
    • returntype = any
    • inject = commandbox.system.endpoints.Folder
    true false
    string namePrefixes


    • access = public
    • returntype = any
    true false
    any progressBar


    • access = public
    • returntype = any
    • inject = ProgressBar
    true false
    any progressableDownloader


    • access = public
    • returntype = any
    • inject = ProgressableDownloader
    true false
    any semanticVersion


    • access = public
    • returntype = any
    • inject = provider:semanticVersion@semver
    true false
    any semverRegex


    • access = public
    • returntype = any
    • inject = semverRegex@constants
    true false
    any shell


    • access = public
    • returntype = any
    • inject = shell
    true false
    any system


    • access = public
    • returntype = any
    • inject = system@constants
    true false
    any tempDir


    • access = public
    • returntype = any
    • inject = tempDir@constants
    true false
    any wirebox


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init()
    Method Summary
    string getArtifactService()
    string getConsoleLogger()
    any getDefaultName(string package)
         Determines the name of a package based on its ID if there is no box.
    string getFolderEndpoint()
    string getNamePrefixes()
    string getProgressBar()
    string getProgressableDownloader()
    private any getProtocol()
    string getSemanticVersion()
    string getSemverRegex()
    string getShell()
    string getSystem()
    string getTempDir()
    any getUpdate(string package, string version, [boolean verbose='false'])
    string getWirebox()
    string resolvePackage(string package, [boolean verbose='false'])
    private any secureCloneCommand(any cloneCommand)
    any setArtifactService(any artifactService)
    any setConsoleLogger(any consoleLogger)
    any setFolderEndpoint(any folderEndpoint)
    any setNamePrefixes(string namePrefixes)
    any setProgressBar(any progressBar)
    any setProgressableDownloader(any progressableDownloader)
    any setSemanticVersion(any semanticVersion)
    any setSemverRegex(any semverRegex)
    any setShell(any shell)
    any setSystem(any system)
    any setTempDir(any tempDir)
    any setWirebox(any wirebox)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    artifactService

    property any artifactService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ArtifactService
    serializable - true

    consoleLogger

    property any consoleLogger

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:console
    serializable - true

    folderEndpoint

    property any folderEndpoint

    Attributes:
    access - public
    required - false
    returntype - any
    inject - commandbox.system.endpoints.Folder
    serializable - true

    namePrefixes

    property string namePrefixes

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    progressBar

    property any progressBar

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ProgressBar
    serializable - true

    progressableDownloader

    property any progressableDownloader

    Attributes:
    access - public
    required - false
    returntype - any
    inject - ProgressableDownloader
    serializable - true

    semanticVersion

    property any semanticVersion

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:semanticVersion@semver
    serializable - true

    semverRegex

    property any semverRegex

    Attributes:
    access - public
    required - false
    returntype - any
    inject - semverRegex@constants
    serializable - true

    shell

    property any shell

    Attributes:
    access - public
    required - false
    returntype - any
    inject - shell
    serializable - true

    system

    property any system

    Attributes:
    access - public
    required - false
    returntype - any
    inject - system@constants
    serializable - true

    tempDir

    property any tempDir

    Attributes:
    access - public
    required - false
    returntype - any
    inject - tempDir@constants
    serializable - true

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - wirebox
    serializable - true

    Method Detail

    getArtifactService

    public string getArtifactService()


    getConsoleLogger

    public string getConsoleLogger()


    getDefaultName

    public any getDefaultName(string package)

    Determines the name of a package based on its ID if there is no box.json

    Specified by:
    getDefaultName in interface IEndpoint
    Parameters:
    package

    getFolderEndpoint

    public string getFolderEndpoint()


    getNamePrefixes

    public string getNamePrefixes()


    getProgressBar

    public string getProgressBar()


    getProgressableDownloader

    public string getProgressableDownloader()


    getProtocol

    private any getProtocol()


    getSemanticVersion

    public string getSemanticVersion()


    getSemverRegex

    public string getSemverRegex()


    getShell

    public string getShell()


    getSystem

    public string getSystem()


    getTempDir

    public string getTempDir()


    getUpdate

    public any getUpdate(string package, string version, [boolean verbose='false'])

    Specified by:
    getUpdate in interface IEndpoint
    Parameters:
    package
    version
    verbose

    getWirebox

    public string getWirebox()


    resolvePackage

    public string resolvePackage(string package, [boolean verbose='false'])

    Specified by:
    resolvePackage in interface IEndpoint
    Parameters:
    package
    verbose

    secureCloneCommand

    private any secureCloneCommand(any cloneCommand)

    Parameters:
    cloneCommand

    setArtifactService

    public any setArtifactService(any artifactService)

    Parameters:
    artifactService

    setConsoleLogger

    public any setConsoleLogger(any consoleLogger)

    Parameters:
    consoleLogger

    setFolderEndpoint

    public any setFolderEndpoint(any folderEndpoint)

    Parameters:
    folderEndpoint

    setNamePrefixes

    public any setNamePrefixes(string namePrefixes)

    Parameters:
    namePrefixes

    setProgressBar

    public any setProgressBar(any progressBar)

    Parameters:
    progressBar

    setProgressableDownloader

    public any setProgressableDownloader(any progressableDownloader)

    Parameters:
    progressableDownloader

    setSemanticVersion

    public any setSemanticVersion(any semanticVersion)

    Parameters:
    semanticVersion

    setSemverRegex

    public any setSemverRegex(any semverRegex)

    Parameters:
    semverRegex

    setShell

    public any setShell(any shell)

    Parameters:
    shell

    setSystem

    public any setSystem(any system)

    Parameters:
    system

    setTempDir

    public any setTempDir(any tempDir)

    Parameters:
    tempDir

    setWirebox

    public any setWirebox(any wirebox)

    Parameters:
    wirebox