Revision 60560d7c kamaki/cli.py
b/kamaki/cli.py | ||
---|---|---|
637 | 637 |
|
638 | 638 |
@classmethod |
639 | 639 |
def update_parser(cls, parser): |
640 |
parser.add_option('--account', dest='account', metavar='ACCOUNT',
|
|
641 |
help='use account ACCOUNT')
|
|
642 |
parser.add_option('--container', dest='container', metavar='CONTAINER',
|
|
643 |
help='use container CONTAINER')
|
|
640 |
parser.add_option('--account', dest='account', metavar='NAME',
|
|
641 |
help='use account NAME')
|
|
642 |
parser.add_option('--container', dest='container', metavar='NAME',
|
|
643 |
help='use container NAME')
|
|
644 | 644 |
|
645 | 645 |
def main(self): |
646 | 646 |
self.config.override('storage_account', self.options.account) |
... | ... | |
652 | 652 |
|
653 | 653 |
|
654 | 654 |
@command(api='storage') |
655 |
class store_create(object): |
|
656 |
"""create a container""" |
|
657 |
|
|
658 |
@classmethod |
|
659 |
def update_parser(cls, parser): |
|
660 |
parser.add_option('--account', dest='account', metavar='ACCOUNT', |
|
661 |
help='use account ACCOUNT') |
|
662 |
|
|
663 |
def main(self, container): |
|
664 |
self.config.override('storage_account', self.options.account) |
|
665 |
self.client.create_container(container) |
|
666 |
|
|
667 |
|
|
668 |
@command(api='storage') |
|
655 | 669 |
class store_container(store_command): |
656 | 670 |
"""get container info""" |
657 | 671 |
|
Also available in: Unified diff