forked from tractorcow/cow
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from open-sausages/pulls/2.0/archive-recipes
API Restore archive and upload steps
- Loading branch information
Showing
23 changed files
with
695 additions
and
379 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
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
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,82 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "cow", | ||
"description": "cow release settings file", | ||
"type": "object", | ||
"properties": { | ||
"github-slug": { | ||
"type": "string" | ||
}, | ||
"commit-link": { | ||
"type": "string" | ||
}, | ||
"changelog-holder": { | ||
"type": "string" | ||
}, | ||
"changelog-path": { | ||
"type": "string" | ||
}, | ||
"changelog-type": { | ||
"type": "string", | ||
"enum": [ | ||
"flat", | ||
"grouped" | ||
] | ||
}, | ||
"changelog-github": { | ||
"type": "boolean" | ||
}, | ||
"child-stability-inherit": { | ||
"type": "boolean" | ||
}, | ||
"dependency-constraint": { | ||
"type": "string", | ||
"enum": [ | ||
"exact", | ||
"loose", | ||
"semver" | ||
] | ||
}, | ||
"vendors": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"exclude": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"upgrade-only": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"tests": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"archives": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"recipe": { | ||
"type": "string" | ||
}, | ||
"files": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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,28 @@ | ||
<?php | ||
|
||
namespace SilverStripe\Cow\Commands\Release; | ||
|
||
use Exception; | ||
use SilverStripe\Cow\Model\Release\LibraryRelease; | ||
use SilverStripe\Cow\Steps\Release\WaitStep; | ||
|
||
/** | ||
* Top level publish command | ||
*/ | ||
class Wait extends Publish | ||
{ | ||
protected $name = 'release:wait'; | ||
|
||
protected $description = 'Wait for this release to be available'; | ||
|
||
protected function fire() | ||
{ | ||
// Get arguments | ||
$project = $this->getProject(); | ||
$releasePlan = $this->getReleasePlan(); | ||
|
||
// Once pushed, wait until installable | ||
$wait = new WaitStep($this, $project, $releasePlan); | ||
$wait->run($this->input, $this->output); | ||
} | ||
} |
Oops, something went wrong.