Skip to content

Commit

Permalink
Add Regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ash123456789 committed Nov 18, 2018
1 parent 4b21b53 commit 3b68074
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/Actions/ManagesRegions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Themsaid\Forge\Actions;

use Themsaid\Forge\Resources\Server;

trait ManagesRegions
{
/**
* @return mixed
*/
public function regions()
{
return $this->get('regions');
}
}
3 changes: 2 additions & 1 deletion src/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Forge
Actions\ManagesCredentials,
Actions\ManagesCertificates,
Actions\ManagesFirewallRules,
Actions\ManagesMysqlDatabases;
Actions\ManagesMysqlDatabases,
Actions\ManagesRegions;

/**
* The Forge API Key.
Expand Down
15 changes: 15 additions & 0 deletions src/Resources/Region.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Themsaid\Forge\Resources;

class Region extends Resource
{
/**
* @return mixed
*/
public function listRegions()
{
return $this->forge->regions();
}
}

0 comments on commit 3b68074

Please sign in to comment.