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
Hardik Juneja
slapos.core
Commits
0f3198ca
Commit
0f3198ca
authored
May 02, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provided all the docstrings for commands
parent
b7bf0cc5
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
28 additions
and
6 deletions
+28
-6
slapos/cli/bang.py
slapos/cli/bang.py
+3
-0
slapos/cli/cache.py
slapos/cli/cache.py
+1
-1
slapos/cli/console.py
slapos/cli/console.py
+1
-1
slapos/cli/format.py
slapos/cli/format.py
+3
-0
slapos/cli/register.py
slapos/cli/register.py
+3
-0
slapos/cli/remove.py
slapos/cli/remove.py
+3
-0
slapos/cli/request.py
slapos/cli/request.py
+3
-0
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+4
-4
slapos/cli/supervisorctl.py
slapos/cli/supervisorctl.py
+3
-0
slapos/cli/supervisord.py
slapos/cli/supervisord.py
+1
-0
slapos/cli/supply.py
slapos/cli/supply.py
+3
-0
No files found.
slapos/cli/bang.py
View file @
0f3198ca
...
...
@@ -7,6 +7,9 @@ from slapos.bang import do_bang
class
BangCommand
(
ConfigCommand
):
"""
request update on all partitions
"""
log
=
logging
.
getLogger
(
__name__
)
...
...
slapos/cli/cache.py
View file @
0f3198ca
...
...
@@ -8,7 +8,7 @@ from slapos.cache import do_lookup
class
CacheLookupCommand
(
ConfigCommand
):
"""
Perform a query to the networkcache.
perform a query to the networkcache
You can provide either a complete URL to the software release,
or a corresponding MD5 hash value.
...
...
slapos/cli/console.py
View file @
0f3198ca
...
...
@@ -8,7 +8,7 @@ from slapos.client import init, do_console, ClientConfig
class
ConsoleCommand
(
ClientConfigCommand
):
"""
Python prompt to interact with slap API.
python prompt to interact with slap API
You can play with the global "slap" object and
with the global "request" method.
...
...
slapos/cli/format.py
View file @
0f3198ca
...
...
@@ -10,6 +10,9 @@ from slapos.format import do_format, FormatConfig, tracing_monkeypatch, UsageErr
class
FormatCommand
(
ConfigCommand
):
"""
create users, partitions and network configuration
"""
log
=
logging
.
getLogger
(
'slapformat'
)
...
...
slapos/cli/register.py
View file @
0f3198ca
...
...
@@ -8,6 +8,9 @@ from slapos.register.register import do_register, RegisterConfig
class
RegisterCommand
(
Command
):
"""
register a node in the SlapOS cloud
"""
log
=
logging
.
getLogger
(
'Register'
)
...
...
slapos/cli/remove.py
View file @
0f3198ca
...
...
@@ -7,6 +7,9 @@ from slapos.client import init, do_remove, ClientConfig
class
RemoveCommand
(
ClientConfigCommand
):
"""
remove a Software from a node
"""
log
=
logging
.
getLogger
(
__name__
)
...
...
slapos/cli/request.py
View file @
0f3198ca
...
...
@@ -21,6 +21,9 @@ def parse_option_dict(options):
class
RequestCommand
(
ClientConfigCommand
):
"""
request an Instance
"""
log
=
logging
.
getLogger
(
__name__
)
...
...
slapos/cli/slapgrid.py
View file @
0f3198ca
...
...
@@ -22,7 +22,7 @@ class SlapgridCommand(ConfigCommand):
def
get_parser
(
self
,
prog_name
):
ap
=
super
(
SlapgridCommand
,
self
).
get_parser
(
prog_name
)
#
XXX TODO separate parsers for instance, software and report?
#
TODO move more options to the instance, software and report subclasses
ap
.
add_argument
(
'--instance-root'
,
help
=
'The instance root directory location.'
)
...
...
@@ -86,7 +86,7 @@ class SlapgridCommand(ConfigCommand):
class
SoftwareCommand
(
SlapgridCommand
):
"""
H
ook for entry point to process Software Releases"""
"""
h
ook for entry point to process Software Releases"""
method_name
=
'processSoftwareReleaseList'
default_pidfile
=
'/opt/slapos/slapgrid-sr.pid'
...
...
@@ -101,7 +101,7 @@ class SoftwareCommand(SlapgridCommand):
class
InstanceCommand
(
SlapgridCommand
):
"""
H
ook for entry point to process Computer Partitions"""
"""
h
ook for entry point to process Computer Partitions"""
method_name
=
'processComputerPartitionList'
default_pidfile
=
'/opt/slapos/slapgrid-cp.pid'
...
...
@@ -116,7 +116,7 @@ class InstanceCommand(SlapgridCommand):
class
ReportCommand
(
SlapgridCommand
):
"""
H
ook for entry point to process Usage Reports"""
"""
h
ook for entry point to process Usage Reports"""
method_name
=
'agregateAndSendUsage'
default_pidfile
=
'/opt/slapos/slapgrid-ur.pid'
slapos/cli/supervisorctl.py
View file @
0f3198ca
...
...
@@ -11,6 +11,9 @@ import supervisor.supervisorctl
class
SupervisorctlCommand
(
ConfigCommand
):
"""
manage supervisor processes
"""
log
=
logging
.
getLogger
(
__name__
)
...
...
slapos/cli/supervisord.py
View file @
0f3198ca
...
...
@@ -8,6 +8,7 @@ from slapos.grid.svcbackend import launchSupervisord
class
SupervisordCommand
(
ConfigCommand
):
"""run the supervisor daemon"""
log
=
logging
.
getLogger
(
__name__
)
...
...
slapos/cli/supply.py
View file @
0f3198ca
...
...
@@ -7,6 +7,9 @@ from slapos.client import init, do_supply, ClientConfig
class
SupplyCommand
(
ClientConfigCommand
):
"""
supply a Software to a node
"""
log
=
logging
.
getLogger
(
__name__
)
...
...
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