-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-recorded site deploy fixture, added no-changes state test
- Loading branch information
tesladethray
committed
Jan 26, 2016
1 parent
9623123
commit 0d78e9f
Showing
8 changed files
with
465 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
namespace Terminus\Models; | ||
|
||
class CodeLog extends TerminusModel { | ||
} |
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 @@ | ||
<?php | ||
|
||
namespace Terminus\Models\Collections; | ||
|
||
class CodeLogs extends TerminusCollection { | ||
|
||
/** | ||
* Give the URL for collection data fetching | ||
* | ||
* @return string URL to use in fetch query | ||
*/ | ||
protected function getFetchUrl() { | ||
$url = sprintf( | ||
'sites/%s/environments/%s/code-log', | ||
$this->environment->site->get('id'), | ||
$this->environment->get('id') | ||
); | ||
return $url; | ||
} | ||
|
||
/** | ||
* Names the model-owner of this collection | ||
* | ||
* @return string | ||
*/ | ||
protected function getOwnerName() { | ||
$owner_name = 'environment'; | ||
return $owner_name; | ||
} | ||
|
||
} |
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
Oops, something went wrong.