Class GitConfigImpl

  • All Implemented Interfaces:
    org.guvnor.ala.config.CloneableConfig<GitConfig>, org.guvnor.ala.config.Config, org.guvnor.ala.config.SourceConfig, GitConfig

    public class GitConfigImpl
    extends Object
    implements GitConfig, org.guvnor.ala.config.CloneableConfig<GitConfig>
    • Constructor Detail

      • GitConfigImpl

        public GitConfigImpl()
    • Method Detail

      • getOutPath

        public String getOutPath()
        Description copied from interface: GitConfig
        Get the OutPath where the repo is going to be stored
        Specified by:
        getOutPath in interface GitConfig
        Returns:
        String with the OutPath if provided, if not it will default to resolve the expression ${input.out-dir} from the Pipeline Input map
      • getBranch

        public String getBranch()
        Description copied from interface: GitConfig
        Get the Branch Name of the repository that will be used
        Specified by:
        getBranch in interface GitConfig
        Returns:
        String with the Branch name if provided, if not it will default to resolve the expression ${input.branch} from the Pipeline Input map.
      • getOrigin

        public String getOrigin()
        Description copied from interface: GitConfig
        Get the Origin address
        Specified by:
        getOrigin in interface GitConfig
        Returns:
        String with the Origin name if provided, if not it will default to resolve the expression ${input.origin} from the Pipeline Input map.
      • getRepoName

        public String getRepoName()
        Description copied from interface: GitConfig
        Get the Repository Name
        Specified by:
        getRepoName in interface GitConfig
        Returns:
        a String with the repository name if provided, if not it will default to resolve the expression ${input.repo-name} from the Pipeline Input map.
      • setOutPath

        public void setOutPath​(String outPath)
      • setBranch

        public void setBranch​(String branch)
      • setOrigin

        public void setOrigin​(String origin)
      • setRepoName

        public void setRepoName​(String repoName)
      • getCreateRepo

        public String getCreateRepo()
        Description copied from interface: GitConfig
        Get String to find out if we need to create the repo or not.
        Specified by:
        getCreateRepo in interface GitConfig
        Returns:
        String true/false. If no set it will default to resolve the expression ${input.create-repo} from the Pipeline Input map.
      • setCreateRepo

        public void setCreateRepo​(String createRepo)
      • asNewClone

        public GitConfig asNewClone​(GitConfig source)
        Specified by:
        asNewClone in interface org.guvnor.ala.config.CloneableConfig<GitConfig>