File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed
src/PlatformConfiguration Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 1616 "hipex/deploy-configuration" : " *"
1717 },
1818 "require" : {
19- "deployer/deployer" : " ^6.8 " ,
19+ "deployer/deployer" : " ^7.0 " ,
2020 "psr/log" : " ^1.0"
2121 }
2222}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Hypernode \DeployConfiguration \PlatformConfiguration ;
4+
5+ use Hypernode \DeployConfiguration \ServerRole ;
6+ use Hypernode \DeployConfiguration \ServerRoleConfigurableInterface ;
7+ use Hypernode \DeployConfiguration \ServerRoleConfigurableTrait ;
8+ use Hypernode \DeployConfiguration \StageConfigurableInterface ;
9+ use Hypernode \DeployConfiguration \StageConfigurableTrait ;
10+ use Hypernode \DeployConfiguration \TaskConfigurationInterface ;
11+
12+ /**
13+ * Sets the attribute/value via hypernode-systemctl
14+ */
15+ class HypernodeSettingConfiguration implements
16+ TaskConfigurationInterface,
17+ ServerRoleConfigurableInterface,
18+ StageConfigurableInterface
19+ {
20+ use ServerRoleConfigurableTrait;
21+
22+ use StageConfigurableTrait;
23+
24+ /**
25+ * @var string
26+ */
27+ private $ attribute ;
28+
29+ /**
30+ * @var string
31+ */
32+ private $ value ;
33+
34+ /**
35+ * @param string $attribute Name of the attribute to set (like 'php_version')
36+ * @param string $value Value of the attribute to set (like '8.1')
37+ */
38+ public function __construct (string $ attribute , string $ value )
39+ {
40+ $ this ->attribute = $ attribute ;
41+ $ this ->value = $ value ;
42+ }
43+
44+ public function getAttribute (): string
45+ {
46+ return $ this ->attribute ;
47+ }
48+
49+ public function getValue (): string
50+ {
51+ return $ this ->value ;
52+ }
53+ }
You can’t perform that action at this time.
0 commit comments