Skip to content

Commit cd52820

Browse files
authored
Merge pull request #193 from CodyPChristian/3.x
Added setDeploymentFailureEmails support to the sites class
2 parents 9a85ad0 + df3b75e commit cd52820

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

src/Actions/ManagesSites.php

+12
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,18 @@ public function disableHipchatNotifications($serverId, $siteId)
401401
$this->delete("servers/$serverId/sites/$siteId/notify/hipchat");
402402
}
403403

404+
/**
405+
* Set the deployment failure emails for the given site.
406+
*
407+
* @param int $serverId
408+
* @param int $siteId
409+
* @return void
410+
*/
411+
public function setDeploymentFailureEmails($serverId, $siteId, array $data)
412+
{
413+
$this->post("servers/$serverId/sites/$siteId/deployment-failure-emails", $data);
414+
}
415+
404416
/**
405417
* Install a new WordPress project.
406418
*

src/Facades/Forge.php

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
* @method static string deploymentHistoryOutput(int $serverId, int $siteId, int $deploymentId)
133133
* @method static void enableHipchatNotifications(int $serverId, int $siteId, array $data)
134134
* @method static void disableHipchatNotifications(int $serverId, int $siteId)
135+
* @method static void setDeploymentFailureEmails(int $serverId, int $siteId, array $data)
135136
* @method static void installWordPress(int $serverId, int $siteId, array $data)
136137
* @method static void removeWordPress(int $serverId, int $siteId)
137138
* @method static void installPhpMyAdmin(int $serverId, int $siteId, array $data)

src/Resources/Site.php

100644100755
+10
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ public function disableHipchatNotifications()
404404
$this->forge->disableHipchatNotifications($this->serverId, $this->id);
405405
}
406406

407+
/**
408+
* Set the deployment failure emails for a site.
409+
*
410+
* @return void
411+
*/
412+
public function setDeploymentFailureEmails(array $data)
413+
{
414+
$this->forge->setDeploymentFailureEmails($this->serverId, $this->id, $data);
415+
}
416+
407417
/**
408418
* Install a new WordPress project.
409419
*

0 commit comments

Comments
 (0)