Commit 41e8cd1a authored by Marco Mariani's avatar Marco Mariani

documentiation cleanup

parent 50f2cfaf
This diff is collapsed.
...@@ -8,7 +8,7 @@ from slapos.client import init, do_console, ClientConfig ...@@ -8,7 +8,7 @@ from slapos.client import init, do_console, ClientConfig
class ConsoleCommand(ClientConfigCommand): class ConsoleCommand(ClientConfigCommand):
""" """
python prompt to interact with slap API python console with slap library imported
You can play with the global "slap" object and You can play with the global "slap" object and
with the global "request" method. with the global "request" method.
......
...@@ -21,9 +21,7 @@ def parse_option_dict(options): ...@@ -21,9 +21,7 @@ def parse_option_dict(options):
class RequestCommand(ClientConfigCommand): class RequestCommand(ClientConfigCommand):
""" """request an instance and get status and parameters of instance"""
request an Instance
"""
log = logging.getLogger('request') log = logging.getLogger('request')
......
...@@ -55,9 +55,6 @@ class SlapgridCommand(ConfigCommand): ...@@ -55,9 +55,6 @@ class SlapgridCommand(ConfigCommand):
help='Promise timeout in seconds.') help='Promise timeout in seconds.')
ap.add_argument('--now', action='store_true', ap.add_argument('--now', action='store_true',
help='Launch slapgrid without delay. Default behavior.') help='Launch slapgrid without delay. Default behavior.')
ap.add_argument('--all', action='store_true',
help='Launch slapgrid to process all Softare Releases '
'and/or Computer Partitions.')
return ap return ap
def take_action(self, args): def take_action(self, args):
...@@ -83,7 +80,7 @@ class SlapgridCommand(ConfigCommand): ...@@ -83,7 +80,7 @@ class SlapgridCommand(ConfigCommand):
class SoftwareCommand(SlapgridCommand): class SoftwareCommand(SlapgridCommand):
"""hook for entry point to process Software Releases""" """run software installation/deletion"""
log = logging.getLogger('software') log = logging.getLogger('software')
...@@ -92,6 +89,8 @@ class SoftwareCommand(SlapgridCommand): ...@@ -92,6 +89,8 @@ class SoftwareCommand(SlapgridCommand):
def get_parser(self, prog_name): def get_parser(self, prog_name):
ap = super(SoftwareCommand, self).get_parser(prog_name) ap = super(SoftwareCommand, self).get_parser(prog_name)
ap.add_argument('--all', action='store_true',
help='Launch slapgrid to process all Softare Releases.')
ap.add_argument('--only-sr', '--only', ap.add_argument('--only-sr', '--only',
help='Force the update of a single software release (can be full URL or MD5 hash), ' help='Force the update of a single software release (can be full URL or MD5 hash), '
'even if is already installed. This option will make all other ' 'even if is already installed. This option will make all other '
...@@ -100,7 +99,7 @@ class SoftwareCommand(SlapgridCommand): ...@@ -100,7 +99,7 @@ class SoftwareCommand(SlapgridCommand):
class InstanceCommand(SlapgridCommand): class InstanceCommand(SlapgridCommand):
"""hook for entry point to process Computer Partitions""" """run instance deployment"""
log = logging.getLogger('instance') log = logging.getLogger('instance')
...@@ -109,6 +108,8 @@ class InstanceCommand(SlapgridCommand): ...@@ -109,6 +108,8 @@ class InstanceCommand(SlapgridCommand):
def get_parser(self, prog_name): def get_parser(self, prog_name):
ap = super(InstanceCommand, self).get_parser(prog_name) ap = super(InstanceCommand, self).get_parser(prog_name)
ap.add_argument('--all', action='store_true',
help='Launch slapgrid to process all Computer Partitions.')
ap.add_argument('--only-cp', '--only', ap.add_argument('--only-cp', '--only',
help='Update a single or a list of computer partitions ' help='Update a single or a list of computer partitions '
'(ie.:slappartX, slappartY), ' '(ie.:slappartX, slappartY), '
...@@ -117,7 +118,7 @@ class InstanceCommand(SlapgridCommand): ...@@ -117,7 +118,7 @@ class InstanceCommand(SlapgridCommand):
class ReportCommand(SlapgridCommand): class ReportCommand(SlapgridCommand):
"""hook for entry point to process Usage Reports""" """run instance reports and garbage collection"""
log = logging.getLogger('report') log = logging.getLogger('report')
......
...@@ -11,9 +11,7 @@ import supervisor.supervisorctl ...@@ -11,9 +11,7 @@ import supervisor.supervisorctl
class SupervisorctlCommand(ConfigCommand): class SupervisorctlCommand(ConfigCommand):
""" """enter into supervisor console, for process management"""
manage supervisor processes
"""
log = logging.getLogger('supervisorctl') log = logging.getLogger('supervisorctl')
......
...@@ -8,7 +8,7 @@ from slapos.grid.svcbackend import launchSupervisord ...@@ -8,7 +8,7 @@ from slapos.grid.svcbackend import launchSupervisord
class SupervisordCommand(ConfigCommand): class SupervisordCommand(ConfigCommand):
"""run the supervisor daemon""" """launch, if not already running, supervisor daemon"""
log = logging.getLogger('supervisord') log = logging.getLogger('supervisord')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment