Open Journal Systems  3.3.0
GuzzleSubSplitTask Class Reference
Inheritance diagram for GuzzleSubSplitTask:

Public Member Functions

 getBase ()
 
 getDryRun ()
 
 getHeads ()
 
 getNoHeads ()
 
 getNoTags ()
 
 getRemote ()
 
 getSubIndicatorFile ()
 
 getTags ()
 
 main ()
 
 publish ()
 
 setBase ($str)
 
 setDryRun ($bool)
 
 setHeads ($str)
 
 setNoHeads ($bool)
 
 setNoTags ($bool)
 
 setRemote ($str)
 
 setSubIndicatorFile ($str)
 
 setTags ($str)
 
 subsplitInit ()
 
 subsplitUpdate ()
 

Protected Member Functions

 findSplits ()
 
 verifyRepos ()
 

Protected Attributes

 $base = null
 
 $client = null
 
 $dryRun = null
 
 $heads = null
 
 $noHeads = false
 
 $noTags = false
 
 $remote = null
 
 $splits
 
 $subIndicatorFile = 'composer.json'
 
 $tags = null
 

Detailed Description

Phing wrapper around git subsplit.

See also
https://github.com/dflydev/git-subsplit

Definition at line 14 of file GuzzleSubSplitTask.php.

Member Function Documentation

◆ findSplits()

GuzzleSubSplitTask::findSplits ( )
protected

Find the composer.json files using Phing's directory scanner

Returns
array

Definition at line 269 of file GuzzleSubSplitTask.php.

References $base, $heads, $splits, getBase(), and getHeads().

Referenced by main().

◆ getBase()

GuzzleSubSplitTask::getBase ( )

Definition at line 97 of file GuzzleSubSplitTask.php.

References $base.

Referenced by findSplits(), and publish().

◆ getDryRun()

GuzzleSubSplitTask::getDryRun ( )

Definition at line 117 of file GuzzleSubSplitTask.php.

References $dryRun.

◆ getHeads()

GuzzleSubSplitTask::getHeads ( )

Definition at line 77 of file GuzzleSubSplitTask.php.

References $heads.

Referenced by findSplits(), publish(), and verifyRepos().

◆ getNoHeads()

GuzzleSubSplitTask::getNoHeads ( )

Definition at line 127 of file GuzzleSubSplitTask.php.

References $noHeads.

Referenced by publish().

◆ getNoTags()

GuzzleSubSplitTask::getNoTags ( )

Definition at line 137 of file GuzzleSubSplitTask.php.

References $noTags.

Referenced by publish().

◆ getRemote()

GuzzleSubSplitTask::getRemote ( )

Definition at line 67 of file GuzzleSubSplitTask.php.

References $remote.

Referenced by main(), and subsplitInit().

◆ getSubIndicatorFile()

GuzzleSubSplitTask::getSubIndicatorFile ( )

Definition at line 107 of file GuzzleSubSplitTask.php.

References $subIndicatorFile.

◆ getTags()

GuzzleSubSplitTask::getTags ( )

Definition at line 87 of file GuzzleSubSplitTask.php.

References $tags.

Referenced by publish().

◆ main()

GuzzleSubSplitTask::main ( )

The main entry point

Definition at line 150 of file GuzzleSubSplitTask.php.

References $remote, findSplits(), getRemote(), publish(), subsplitInit(), subsplitUpdate(), and verifyRepos().

◆ publish()

GuzzleSubSplitTask::publish ( )

Definition at line 183 of file GuzzleSubSplitTask.php.

References $base, $heads, $splits, getBase(), getHeads(), getNoHeads(), getNoTags(), and getTags().

Referenced by main().

◆ setBase()

GuzzleSubSplitTask::setBase (   $str)

Definition at line 92 of file GuzzleSubSplitTask.php.

◆ setDryRun()

GuzzleSubSplitTask::setDryRun (   $bool)

Definition at line 112 of file GuzzleSubSplitTask.php.

◆ setHeads()

GuzzleSubSplitTask::setHeads (   $str)

Definition at line 72 of file GuzzleSubSplitTask.php.

◆ setNoHeads()

GuzzleSubSplitTask::setNoHeads (   $bool)

Definition at line 122 of file GuzzleSubSplitTask.php.

◆ setNoTags()

GuzzleSubSplitTask::setNoTags (   $bool)

Definition at line 132 of file GuzzleSubSplitTask.php.

◆ setRemote()

GuzzleSubSplitTask::setRemote (   $str)

Definition at line 62 of file GuzzleSubSplitTask.php.

◆ setSubIndicatorFile()

GuzzleSubSplitTask::setSubIndicatorFile (   $str)

Definition at line 102 of file GuzzleSubSplitTask.php.

◆ setTags()

GuzzleSubSplitTask::setTags (   $str)

Definition at line 82 of file GuzzleSubSplitTask.php.

◆ subsplitInit()

GuzzleSubSplitTask::subsplitInit ( )

Runs git subsplit init based on the remote repository.

Definition at line 241 of file GuzzleSubSplitTask.php.

References $remote, and getRemote().

Referenced by main().

◆ subsplitUpdate()

GuzzleSubSplitTask::subsplitUpdate ( )

Runs git subsplit update

Definition at line 222 of file GuzzleSubSplitTask.php.

Referenced by main().

◆ verifyRepos()

GuzzleSubSplitTask::verifyRepos ( )
protected

Based on list of repositories we determined we should have, talk to GitHub and make sure they're all there.

Definition at line 322 of file GuzzleSubSplitTask.php.

References $heads, and getHeads().

Referenced by main().

Field Documentation

◆ $base

GuzzleSubSplitTask::$base = null
protected

Base of the tree RELATIVE TO .subsplit working dir

Definition at line 34 of file GuzzleSubSplitTask.php.

Referenced by findSplits(), getBase(), and publish().

◆ $client

GuzzleSubSplitTask::$client = null
protected

GitClient from VersionControl_Git

Definition at line 145 of file GuzzleSubSplitTask.php.

◆ $dryRun

GuzzleSubSplitTask::$dryRun = null
protected

Do everything except actually send the update.

Definition at line 45 of file GuzzleSubSplitTask.php.

Referenced by getDryRun().

◆ $heads

GuzzleSubSplitTask::$heads = null
protected

Publish for comma-separated heads instead of all heads

Definition at line 24 of file GuzzleSubSplitTask.php.

Referenced by findSplits(), getHeads(), publish(), and verifyRepos().

◆ $noHeads

GuzzleSubSplitTask::$noHeads = false
protected

Do not sync any heads.

Definition at line 50 of file GuzzleSubSplitTask.php.

Referenced by getNoHeads().

◆ $noTags

GuzzleSubSplitTask::$noTags = false
protected

Do not sync any tags.

Definition at line 55 of file GuzzleSubSplitTask.php.

Referenced by getNoTags().

◆ $remote

GuzzleSubSplitTask::$remote = null
protected

What git repository to pull from and publish to

Definition at line 19 of file GuzzleSubSplitTask.php.

Referenced by getRemote(), main(), and subsplitInit().

◆ $splits

GuzzleSubSplitTask::$splits
protected

The splits we found in the heads

Definition at line 60 of file GuzzleSubSplitTask.php.

Referenced by findSplits(), and publish().

◆ $subIndicatorFile

GuzzleSubSplitTask::$subIndicatorFile = 'composer.json'
protected

The presence of this file will indicate that the directory it resides in is at the top level of a split.

Definition at line 40 of file GuzzleSubSplitTask.php.

Referenced by getSubIndicatorFile().

◆ $tags

GuzzleSubSplitTask::$tags = null
protected

Publish for comma-separated tags instead of all tags

Definition at line 29 of file GuzzleSubSplitTask.php.

Referenced by getTags().


The documentation for this class was generated from the following file: