Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
0e4ee6d1
Commit
0e4ee6d1
authored
Jan 30, 2013
by
Stavros Sachtouris
Browse files
store-move to use --dst-container with : support
parent
e423eb63
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/pithos_cli.py
View file @
0e4ee6d1
...
...
@@ -591,12 +591,14 @@ class store_copy(_store_container_command):
self
.
path
,
self
.
container
))
def
main
(
self
,
source_container___path
,
dst_container___path
=
None
):
def
main
(
self
,
source_container___path
,
destination_container___path
=
None
):
super
(
self
.
__class__
,
self
).
_run
(
source_container___path
,
path_is_optional
=
False
)
(
dst_cont
,
dst_path
)
=
self
.
_dest_container_path
(
dst_container___path
)
d
e
st
ination
_container___path
)
self
.
_run
(
dst_cont
=
dst_cont
,
dst_path
=
dst_path
or
''
)
...
...
@@ -623,6 +625,9 @@ class store_move(_store_container_command):
"""
arguments
=
dict
(
destination_container
=
ValueArgument
(
'use it if destination container name contains a : character'
,
'--dst-container'
),
source_version
=
ValueArgument
(
'specify version'
,
'--source-version'
),
public
=
FlagArgument
(
'make object publicly accessible'
,
'--public'
),
content_type
=
ValueArgument
(
'modify content type'
,
'--content-type'
),
...
...
@@ -665,13 +670,15 @@ class store_move(_store_container_command):
self
.
path
,
self
.
container
))
def
main
(
self
,
source_container___path
,
destination_container___path
):
def
main
(
self
,
source_container___path
,
destination_container___path
=
None
):
super
(
self
.
__class__
,
self
).
_run
(
source_container___path
,
path_is_optional
=
False
)
(
dst_cont
,
dst_path
)
=
self
.
_dest_container_path
(
destination_container___path
)
self
.
_run
(
dst_cont
=
dst_cont
,
dst_path
=
dst_path
)
self
.
_run
(
dst_cont
=
dst_cont
,
dst_path
=
dst_path
or
''
)
@
command
(
pithos_cmds
)
...
...
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