File tree 5 files changed +11
-11
lines changed 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ Usage:
112
112
``` php
113
113
$configuration->addAfterDeployTask(new \Hypernode\DeployConfiguration\AfterDeployTask\SlackWebhook());
114
114
```
115
- ### 5. Ephemeral servers for acceptance/integration testing
115
+ ### 5. Brancher servers for acceptance/integration testing
116
116
117
117
Usage:
118
118
``` php
119
119
$stage = $configuration->addStage('test', 'test.domain.com');
120
- $stage->addEphemeralServer ('appname');
120
+ $stage->addBrancherServer ('appname');
121
121
```
122
122
123
123
## Application template
Original file line number Diff line number Diff line change 7
7
*/
8
8
class Server
9
9
{
10
- public const OPTION_HN_EPHEMERAL = 'hn_ephemeral ' ;
10
+ public const OPTION_HN_BRANCHER = 'hn_brancher ' ;
11
11
public const OPTION_HN_PARENT_APP = 'hn_parent_app ' ;
12
12
13
13
/**
Original file line number Diff line number Diff line change @@ -68,22 +68,22 @@ public function addServer(
68
68
}
69
69
70
70
/**
71
- * Create a temporary (ephemeral ) Hypernode instance based on given Hypernode.
71
+ * Create a temporary (brancher ) Hypernode instance based on given Hypernode.
72
72
* The hostname will be defined during the deployment.
73
73
*
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
75
75
* @param array|null $roles Roles for the server to be applied
76
76
* @param array $options Extra host options for Deployer
77
77
* @see ServerRole
78
78
* @return Server
79
79
*/
80
- public function addEphemeralServer (string $ appName , array $ roles = null , array $ options = []): Server
80
+ public function addBrancherServer (string $ appName , array $ roles = null , array $ options = []): Server
81
81
{
82
- $ ephemeralOptions = [
83
- Server::OPTION_HN_EPHEMERAL => true ,
82
+ $ brancherOptions = [
83
+ Server::OPTION_HN_BRANCHER => true ,
84
84
Server::OPTION_HN_PARENT_APP => $ appName ,
85
85
];
86
- $ options = array_merge ($ ephemeralOptions , $ options );
86
+ $ options = array_merge ($ brancherOptions , $ options );
87
87
$ server = new Server ('' , $ roles , $ options );
88
88
$ this ->servers [] = $ server ;
89
89
return $ server ;
Original file line number Diff line number Diff line change 14
14
$ productionStage ->addServer ('appname.hypernode.io ' );
15
15
16
16
$ testStage = $ configuration ->addStage ('test ' , 'example.com ' );
17
- $ testStage ->addEphemeralServer ('appname ' );
17
+ $ testStage ->addBrancherServer ('appname ' );
18
18
19
19
return $ configuration ;
Original file line number Diff line number Diff line change 14
14
$ productionStage ->addServer ('appname.hypernode.io ' );
15
15
16
16
$ testStage = $ configuration ->addStage ('test ' , 'example.com ' );
17
- $ testStage ->addEphemeralServer ('appname ' );
17
+ $ testStage ->addBrancherServer ('appname ' );
18
18
19
19
return $ configuration ;
You can’t perform that action at this time.
0 commit comments