-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78a81b8
commit 15f7cfb
Showing
11 changed files
with
192 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Libgossamer API Reference - ReleaseBundlerInterface | ||
|
||
* **Fully Qualified Interface Name**: `ParagonIE\Gossamer\Interfaces\ReleaseBundlerInterface` | ||
|
||
## Interface Methods | ||
|
||
### `setWorkDirectory()` | ||
|
||
Performs an HTTP GET request. | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Directory path | ||
|
||
Returns this object that implements `ReleaseBundlerInterface`. | ||
|
||
### `bundle()` | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Output file path | ||
|
||
Returns TRUE on success and FALSE on failure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Libgossamer API Reference - Release - Bundler - AbstractBundler ([ReleaseBundlerInterface](../../Interfaces/ReleaseBundlerInterface.md)) | ||
|
||
* **Fully Qualified Class Name**: `ParagonIE\Gossamer\Release\Bundler\AbstractBundler` | ||
|
||
## Methods | ||
|
||
### `setWorkDirectory()` | ||
|
||
See [ReleaseBundlerInterface::setWorkDirectory()](../../Interfaces/ReleaseBundlerInterface.md#setworkdirectory). | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Full path to a project's root directory | ||
|
||
Returns this object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Libgossamer API Reference - Release - Bundler - GitDiffBundler | ||
|
||
* **Fully Qualified Class Name**: `ParagonIE\Gossamer\Release\Bundler\GitDiffBundler` | ||
|
||
This class inherits all methods from [AbstractBundler](AbstractBundler.md). | ||
|
||
## Methods | ||
|
||
### `setPreviousIdentifier()` | ||
|
||
Sets the git identifier (commit, branch, or tag) to be compared against. | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Git identifier | ||
|
||
Returns this object. | ||
|
||
### `bundle()` | ||
|
||
See [ReleaseBundlerInterface::bundle()](../../Interfaces/ReleaseBundlerInterface.md#bundle). | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Output file path | ||
2. `string` - Current git identifier (default: `HEAD`) | ||
|
||
Returns TRUE on success and FALSE on failure. | ||
|
||
This creates a patch file (in `git diff` format) based on the changes between two git | ||
identifiers (commits, branches, or tags). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Libgossamer API Reference - Release - Bundler - PharBundler | ||
|
||
* **Fully Qualified Class Name**: `ParagonIE\Gossamer\Release\Bundler\PharBundler` | ||
|
||
This class inherits all methods from [AbstractBundler](AbstractBundler.md). | ||
|
||
## Methods | ||
|
||
### `setDefaultStubFilename()` | ||
|
||
Sets the filename for the default stub in the PHP Archive. | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Filename (e.g. `index.php`) | ||
|
||
Returns this object. | ||
|
||
### `bundle()` | ||
|
||
See [ReleaseBundlerInterface::bundle()](../../Interfaces/ReleaseBundlerInterface.md#bundle). | ||
|
||
> **Warning**: This method cannot be called unless `phar.readonly = 0` in your php.ini configuration. | ||
**Arguments**: | ||
|
||
1. `string` - Output file path | ||
|
||
Returns TRUE on success and FALSE on failure. | ||
|
||
This creates a Phar archive at the destination output file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Libgossamer API Reference - Release Bundlers | ||
|
||
The classes contained within facilitate the bundling of release deliverables. | ||
|
||
* [AbstractBundler](AbstractBundler.md) | ||
* [GitDiffBundler](GitDiffBundler.md) | ||
* [PharBundler](PharBundler.md) | ||
* [TarBundler](TarBundler.md) | ||
* [ZipBundler](ZipBundler.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Libgossamer API Reference - Release - Bundler - TarBundler | ||
|
||
* **Fully Qualified Class Name**: `ParagonIE\Gossamer\Release\Bundler\TarBundler` | ||
|
||
This class inherits all methods from [AbstractBundler](AbstractBundler.md). | ||
|
||
## Methods | ||
|
||
### `setCompression()` | ||
|
||
Toggle the type of compression to be used with this Tarball. | ||
|
||
**Arguments**: | ||
|
||
1. `string|null` - Compression type. Acceptable values: | ||
* `NULL` - no compression | ||
* `"gz"` - Gzip Compression | ||
* `"bz2"` - Bzip2 Compression | ||
* `"lzma2"` - LZMA 2 Compression | ||
|
||
Returns this object. | ||
|
||
### `bundle()` | ||
|
||
See [ReleaseBundlerInterface::bundle()](../../Interfaces/ReleaseBundlerInterface.md#bundle). | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Output file path | ||
|
||
Returns TRUE on success and FALSE on failure. | ||
|
||
This creates a Tar archive at the destination output file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Libgossamer API Reference - Release - Bundler - ZipBundler | ||
|
||
* **Fully Qualified Class Name**: `ParagonIE\Gossamer\Release\Bundler\ZipBundler` | ||
|
||
This class inherits all methods from [AbstractBundler](AbstractBundler.md). | ||
|
||
## Methods | ||
|
||
### `bundle()` | ||
|
||
See [ReleaseBundlerInterface::bundle()](../../Interfaces/ReleaseBundlerInterface.md#bundle). | ||
|
||
**Arguments**: | ||
|
||
1. `string` - Output file path | ||
|
||
Returns TRUE on success and FALSE on failure. | ||
|
||
This creates a Zip archive at the destination output file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Libgossamer API Reference - TypeHelperTrait | ||
|
||
* **Fully Qualified Trait Name**: `ParagonIE\Gossamer\TypeHelperTrait` | ||
|
||
## Methods | ||
|
||
### `assert()` | ||
|
||
Throw a condition if a statement is not true. | ||
|
||
**Arguments**: | ||
|
||
1. `bool` Statement | ||
2. `string` Error message if statement is false | ||
3. `class-string` Error/Exception class to instantiate | ||
|
||
Does not return a value, but will throw if the Statement is false (or falsy). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters