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
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
with the global "request" method.
......
......@@ -21,9 +21,7 @@ def parse_option_dict(options):
class RequestCommand(ClientConfigCommand):
"""
request an Instance
"""
"""request an instance and get status and parameters of instance"""
log = logging.getLogger('request')
......
......@@ -55,9 +55,6 @@ class SlapgridCommand(ConfigCommand):
help='Promise timeout in seconds.')
ap.add_argument('--now', action='store_true',
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
def take_action(self, args):
......@@ -83,7 +80,7 @@ class SlapgridCommand(ConfigCommand):
class SoftwareCommand(SlapgridCommand):
"""hook for entry point to process Software Releases"""
"""run software installation/deletion"""
log = logging.getLogger('software')
......@@ -92,6 +89,8 @@ class SoftwareCommand(SlapgridCommand):
def get_parser(self, 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',
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 '
......@@ -100,7 +99,7 @@ class SoftwareCommand(SlapgridCommand):
class InstanceCommand(SlapgridCommand):
"""hook for entry point to process Computer Partitions"""
"""run instance deployment"""
log = logging.getLogger('instance')
......@@ -109,6 +108,8 @@ class InstanceCommand(SlapgridCommand):
def get_parser(self, 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',
help='Update a single or a list of computer partitions '
'(ie.:slappartX, slappartY), '
......@@ -117,7 +118,7 @@ class InstanceCommand(SlapgridCommand):
class ReportCommand(SlapgridCommand):
"""hook for entry point to process Usage Reports"""
"""run instance reports and garbage collection"""
log = logging.getLogger('report')
......
......@@ -11,9 +11,7 @@ import supervisor.supervisorctl
class SupervisorctlCommand(ConfigCommand):
"""
manage supervisor processes
"""
"""enter into supervisor console, for process management"""
log = logging.getLogger('supervisorctl')
......
......@@ -8,7 +8,7 @@ from slapos.grid.svcbackend import launchSupervisord
class SupervisordCommand(ConfigCommand):
"""run the supervisor daemon"""
"""launch, if not already running, supervisor daemon"""
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