Sunnysideup\ModuleChecks\Api\GitApi
Synopsis
class GitApi
extends BaseObject
{
- // Inherited constants from BaseObject
- const CHECKS = ;
- const CHECKS_PATHS_METHODS = ;
- // members
- protected $gitApiWrapper = NULL;
- protected $commsWrapper = NULL;
- private $repo = NULL;
- private $latestTag = NULL;
- // Inherited members from BaseObject
- protected static $inst;
- // methods
- public void __construct()
- public bool pull()
- public bool commit()
- public bool add()
- public bool push()
- public void getLatestCommitTime()
- public void getLatestTag()
- public void getChangeTypeSinceLastTag()
- public void createTag()
- public void findNextTag()
- protected void IsDirGitRepo()
- // Inherited methods from BaseObject
- public static void inst()
- public void areWeReady()
- public static void absolute_path_to_private_key()
- public static string absolute_path_to_temp_folder()
Hierarchy
Constants
Name | Value |
---|---|
CHECKS | |
CHECKS_PATHS_METHODS |
Members
private
- $latestTag
- $repo
protected
- $commsWrapper
- $gitApiWrapper
- $inst
Methods
protected
public
- __construct()
- add() — adds all files to a git repo
- commit() — commits a git repo
- createTag()
- findNextTag()
- getChangeTypeSinceLastTag() — git command used: //git log 0.0.1..HEAD --oneline return @string (major | minor | patch)
- getLatestCommitTime()
- getLatestTag()
- pull() — pulls a git repo
- push() — adds all files to a git repo
Inherited from Sunnysideup\ModuleChecks\BaseObject
public
- absolute_path_to_private_key()
- absolute_path_to_temp_folder() — path to temp folder using
- areWeReady()
- inst()