You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`on_dedicated` method that determines if the current environment is a Platform.sh Dedicated environment. Replaces deprecated `on_enterprise` method.
8
9
9
-
***Misc.**
10
+
### Changed
10
11
11
-
## v0.1.0 (2010-02-14)
12
+
* Deprecates `on_enterprise` method - which is for now made to wrap around the added `on_dedicated` method. `on_enterprise`**will be removed** in a future release, so update your projects to use `on_dedicated` instead as soon as possible.
12
13
13
-
- Initial version.
14
+
## [2.3.0] - 2019-09-19
15
+
16
+
### Added
17
+
18
+
*`get_primary_route` method for accessing routes marked "primary" in `routes.yaml`.
19
+
*`get_upstream_routes` method returns an object map that includes only those routes that point to a valid upstream.
20
+
21
+
## [2.2.3] - 2019-04-30
22
+
23
+
### Changed
24
+
25
+
* Removes guard on `variables()` method.
26
+
27
+
## [2.2.2] - 2019-04-29
28
+
29
+
### Changed
30
+
31
+
* Refactors dynamic property access to be more permissive.
32
+
33
+
## [2.2.1] - 2019-04-25
34
+
35
+
### Changed
36
+
37
+
* More permissive check for relationships.
38
+
39
+
## [2.2.0] - 2019-04-24
40
+
41
+
### Added
42
+
43
+
*`postgresql_dsn` credential formatter; returns a DSN appropriate for PostgreSQL connection.
44
+
45
+
## [2.1.1] - 2019-03-22
46
+
47
+
### Changed
48
+
49
+
* Fixes build issues in `has_relationship()` and `routes()` methods.
50
+
51
+
## [2.1.0] - 2019-03-22
52
+
53
+
### Added
54
+
55
+
*`has_relationship` method to determine if a relationship is defined, and thus has credentials available.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,11 +60,17 @@ config.in_build()
60
60
61
61
config.in_runtime()
62
62
63
-
config.on_enterprise()
63
+
config.on_dedicated()
64
64
65
65
config.on_production()
66
66
```
67
67
68
+
> **Note:**
69
+
>
70
+
> Platform.sh will no longer refer to its [99.99% uptime SLA product](https://platform.sh/solutions/) as "Enterprise", but rather as "Dedicated". Configuration Reader libraries have in turn been updated to include an `on_dedicated` method to replace `on_enterprise`. For now `on_enterprise` remains available. It now calls the new method and no breaking changes have been introduced.
71
+
>
72
+
> It is recommended that you update your projects to use `on_dedicated` as soon as possible, as `on_enterprise` will be removed in a future version of this library.
73
+
68
74
### Read environment variables
69
75
70
76
The following magic properties return the corresponding environment variable value. See the [Platform.sh documentation](https://docs.platform.sh/development/variables.html) for a description of each.
"""Determines if the current environment is a Platform.sh Dedicated environment.
392
+
393
+
@deprecated
394
+
395
+
The Platform.sh "Enterprise" will soon be referred to exclusively as "Dedicated". the `on_enterprise` method remains available for now, but it will be removed in a future version of this library.
396
+
It is recommended that you update your projects to use `on_dedicated` as soon as possible.
397
+
398
+
Returns:
399
+
bool:
400
+
True on a Dedicated environment, False otherwise.
401
+
"""
402
+
403
+
returnself.on_dedicated()
404
+
390
405
defon_production(self):
391
406
"""Determines if the current environment is a production environment.
0 commit comments