Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
slapos.core
Commits
41e8cd1a
Commit
41e8cd1a
authored
May 03, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentiation cleanup
parent
50f2cfaf
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
184 additions
and
162 deletions
+184
-162
documentation/source/slapos.usage.rst
documentation/source/slapos.usage.rst
+173
-148
slapos/cli/console.py
slapos/cli/console.py
+1
-1
slapos/cli/request.py
slapos/cli/request.py
+1
-3
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+7
-6
slapos/cli/supervisorctl.py
slapos/cli/supervisorctl.py
+1
-3
slapos/cli/supervisord.py
slapos/cli/supervisord.py
+1
-1
No files found.
documentation/source/slapos.usage.rst
View file @
41e8cd1a
This diff is collapsed.
Click to expand it.
slapos/cli/console.py
View file @
41e8cd1a
...
@@ -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.
...
...
slapos/cli/request.py
View file @
41e8cd1a
...
@@ -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'
)
...
...
slapos/cli/slapgrid.py
View file @
41e8cd1a
...
@@ -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'
)
...
...
slapos/cli/supervisorctl.py
View file @
41e8cd1a
...
@@ -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'
)
...
...
slapos/cli/supervisord.py
View file @
41e8cd1a
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment