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
Łukasz Nowak
slapos.core
Commits
82f0a8f9
Commit
82f0a8f9
authored
May 13, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--only and --all are mutually exclusive
parent
e58e7363
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
documentation/source/slapos.usage.rst
documentation/source/slapos.usage.rst
+2
-12
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+16
-12
No files found.
documentation/source/slapos.usage.rst
View file @
82f0a8f9
...
@@ -214,18 +214,13 @@ node software
...
@@ -214,18 +214,13 @@ node software
.. program-output:: python slapos help node software
.. program-output:: python slapos help node software
Parameters:
***********
--only_sr URL Only process one specific Software Release that has been supplied on this Computer. If not supplied: do nothing.
--all Process all Software Releases, even already installed.
Return values:
Return values:
**************
**************
(Among other standard Python return values)
(Among other standard Python return values)
* 0 Everything went fine
* 0 Everything went fine
* 1 At least one software
hasn't correctly been
installed.
* 1 At least one software
was not correctly
installed.
node instance
node instance
...
@@ -234,18 +229,13 @@ node instance
...
@@ -234,18 +229,13 @@ node instance
.. program-output:: python slapos help node instance
.. program-output:: python slapos help node instance
Parameters:
***********
--only_cp PARTITION Only process one specific Computer Partition, if possible.
--all Force processing all Computer Partitions.
Return values:
Return values:
**************
**************
(Among other standard Python return values)
(Among other standard Python return values)
* 0 Everything went fine
* 0 Everything went fine
* 1 At least one instance
hasn't correctly been
processed.
* 1 At least one instance
was not correctly
processed.
* 2 At least one promise has failed.
* 2 At least one promise has failed.
...
...
slapos/cli/slapgrid.py
View file @
82f0a8f9
...
@@ -89,9 +89,11 @@ class SoftwareCommand(SlapgridCommand):
...
@@ -89,9 +89,11 @@ 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.'
)
only
=
ap
.
add_mutually_exclusive_group
()
ap
.
add_argument
(
'--only-sr'
,
'--only'
,
only
.
add_argument
(
'--all'
,
action
=
'store_true'
,
help
=
'Process all Software Releases, even if already installed.'
)
only
.
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 '
'sofware releases be ignored.'
)
'sofware releases be ignored.'
)
...
@@ -108,9 +110,11 @@ class InstanceCommand(SlapgridCommand):
...
@@ -108,9 +110,11 @@ 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.'
)
only
=
ap
.
add_mutually_exclusive_group
()
ap
.
add_argument
(
'--only-cp'
,
'--only'
,
only
.
add_argument
(
'--all'
,
action
=
'store_true'
,
help
=
'Process all Computer Partitions.'
)
only
.
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), '
'this option will make all other computer partitions be ignored.'
)
'this option will make all other computer partitions be ignored.'
)
...
...
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