Skip to content

Commit d614149

Browse files
author
chadcarlson
committed
Move deprecated block to on_enterprise.
1 parent d361c04 commit d614149

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

platformshconfig/config.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,6 @@ def get_route(self, route_id):
362362
def application(self):
363363
"""Returns the application definition dict.
364364
365-
@deprecated
366-
367-
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.
368-
It is recommended that you update your projects to use `on_dedicated` as soon as possible.
369-
370365
Returns:
371366
The application definition dict.
372367
@@ -383,15 +378,19 @@ def on_dedicated(self):
383378
384379
Returns:
385380
bool:
386-
True on an Enterprise environment, False otherwise.
381+
True on an Dedicated environment, False otherwise.
387382
388383
"""
389384

390385
return self.is_valid_platform() and self['MODE'] == 'enterprise'
391386

392387
def on_enterprise(self):
393388
"""Determines if the current environment is a Platform.sh Enterprise environment.
394-
Depreated, use on_dedicated instead
389+
390+
@deprecated
391+
392+
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.
393+
It is recommended that you update your projects to use `on_dedicated` as soon as possible.
395394
396395
Returns:
397396
bool:

0 commit comments

Comments
 (0)