Skip to content

Commit c1d105a

Browse files
Merge pull request #30 from ByteInternet/rename-ephemeral-to-brancher
2 parents c649213 + 2feabfd commit c1d105a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ Usage:
112112
``` php
113113
$configuration->addAfterDeployTask(new \Hypernode\DeployConfiguration\AfterDeployTask\SlackWebhook());
114114
```
115-
### 5. Ephemeral servers for acceptance/integration testing
115+
### 5. Brancher servers for acceptance/integration testing
116116

117117
Usage:
118118
``` php
119119
$stage = $configuration->addStage('test', 'test.domain.com');
120-
$stage->addEphemeralServer('appname');
120+
$stage->addBrancherServer('appname');
121121
```
122122

123123
## Application template

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
class Server
99
{
10-
public const OPTION_HN_EPHEMERAL = 'hn_ephemeral';
10+
public const OPTION_HN_BRANCHER = 'hn_brancher';
1111
public const OPTION_HN_PARENT_APP = 'hn_parent_app';
1212

1313
/**

src/Stage.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ public function addServer(
6868
}
6969

7070
/**
71-
* Create a temporary (ephemeral) Hypernode instance based on given Hypernode.
71+
* Create a temporary (brancher) Hypernode instance based on given Hypernode.
7272
* The hostname will be defined during the deployment.
7373
*
74-
* @param string $appName Name of the Hypernode to base the ephemeral server on
74+
* @param string $appName Name of the Hypernode to base the brancher server on
7575
* @param array|null $roles Roles for the server to be applied
7676
* @param array $options Extra host options for Deployer
7777
* @see ServerRole
7878
* @return Server
7979
*/
80-
public function addEphemeralServer(string $appName, array $roles = null, array $options = []): Server
80+
public function addBrancherServer(string $appName, array $roles = null, array $options = []): Server
8181
{
82-
$ephemeralOptions = [
83-
Server::OPTION_HN_EPHEMERAL => true,
82+
$brancherOptions = [
83+
Server::OPTION_HN_BRANCHER => true,
8484
Server::OPTION_HN_PARENT_APP => $appName,
8585
];
86-
$options = array_merge($ephemeralOptions, $options);
86+
$options = array_merge($brancherOptions, $options);
8787
$server = new Server('', $roles, $options);
8888
$this->servers[] = $server;
8989
return $server;

templates/deploy.magento2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
$productionStage->addServer('appname.hypernode.io');
1515

1616
$testStage = $configuration->addStage('test', 'example.com');
17-
$testStage->addEphemeralServer('appname');
17+
$testStage->addBrancherServer('appname');
1818

1919
return $configuration;

templates/deploy.shopware6.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
$productionStage->addServer('appname.hypernode.io');
1515

1616
$testStage = $configuration->addStage('test', 'example.com');
17-
$testStage->addEphemeralServer('appname');
17+
$testStage->addBrancherServer('appname');
1818

1919
return $configuration;

0 commit comments

Comments
 (0)