Skip to content

Commit a1628af

Browse files
author
Matthew Fisher
committed
ref(client): rename limit to limits
'limits' follows our other commands' syntax much better i.e. apps:list, releases:rollback etc.
1 parent 773f105 commit a1628af

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

client/deis.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
config manage environment variables that define app config
1919
domains manage and assign domain names to your applications
2020
builds manage builds created using `git push`
21-
limit manage resource limits for your application
21+
limits manage resource limits for your application
2222
releases manage releases of an application
2323
2424
keys manage ssh keys used for `git push` deployments
@@ -1346,25 +1346,25 @@ def domains_list(self, args):
13461346
else:
13471347
raise ResponseError(response)
13481348

1349-
def limit(self, args):
1349+
def limits(self, args):
13501350
"""
1351-
Valid commands for limit:
1351+
Valid commands for limits:
13521352
1353-
limit:list list resource limits for an app
1354-
limit:set set resource limits for an app
1355-
limit:unset unset resource limits for an app
1353+
limits:list list resource limits for an app
1354+
limits:set set resource limits for an app
1355+
limits:unset unset resource limits for an app
13561356
13571357
Use `deis help [command]` to learn more.
13581358
"""
1359-
sys.argv[1] = 'limit:list'
1360-
args = docopt(self.limit_list.__doc__)
1361-
return self.limit_list(args)
1359+
sys.argv[1] = 'limits:list'
1360+
args = docopt(self.limits_list.__doc__)
1361+
return self.limits_list(args)
13621362

1363-
def limit_list(self, args):
1363+
def limits_list(self, args):
13641364
"""
13651365
Lists resource limits for an application.
13661366
1367-
Usage: deis limit:list [options]
1367+
Usage: deis limits:list [options]
13681368
13691369
Options:
13701370
-a --app=<app>
@@ -1379,7 +1379,7 @@ def limit_list(self, args):
13791379
else:
13801380
raise ResponseError(response)
13811381

1382-
def limit_set(self, args):
1382+
def limits_set(self, args):
13831383
"""
13841384
Sets resource limits for an application.
13851385
@@ -1388,7 +1388,7 @@ def limit_set(self, args):
13881388
is applied to each individual container, so setting a memory limit of 1G for an
13891389
application means that each container gets 1G of memory.
13901390
1391-
Usage: deis limit:set [options] <type>=<limit>...
1391+
Usage: deis limits:set [options] <type>=<limit>...
13921392
13931393
Arguments:
13941394
<type>
@@ -1440,11 +1440,11 @@ def limit_set(self, args):
14401440
else:
14411441
raise ResponseError(response)
14421442

1443-
def limit_unset(self, args):
1443+
def limits_unset(self, args):
14441444
"""
14451445
Unsets resource limits for an application.
14461446
1447-
Usage: deis limit:unset [--memory | --cpu] <type>... [options]
1447+
Usage: deis limits:unset [--memory | --cpu] <type>... [options]
14481448
14491449
Arguments:
14501450
-m, --memory limit memory [default: true]

docs/reference/client.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ deis keys
7676
.. automethod:: client.deis.DeisClient.keys_add
7777
.. automethod:: client.deis.DeisClient.keys_remove
7878

79-
.. _deis_limit:
79+
.. _deis_limits:
8080

81-
deis limit
82-
----------
81+
deis limits
82+
-----------
8383

84-
.. automethod:: client.deis.DeisClient.limit_list
85-
.. automethod:: client.deis.DeisClient.limit_set
86-
.. automethod:: client.deis.DeisClient.limit_unset
84+
.. automethod:: client.deis.DeisClient.limits_list
85+
.. automethod:: client.deis.DeisClient.limits_set
86+
.. automethod:: client.deis.DeisClient.limits_unset
8787

8888
.. _deis_perms:
8989

0 commit comments

Comments
 (0)