Skip to content

Commit

Permalink
code to snapshot the running image
Browse files Browse the repository at this point in the history
  • Loading branch information
mvliet committed Jan 25, 2011
1 parent 146689f commit 3525d9b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions repoman-client/repoman_client/subcommands/snapshot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from repoman_client.subcommand import SubCommand
from argparse import ArgumentParser
import sys

class SnapshotSystem(SubCommand):
command_group = 'advanced'
command = 'snapshot-system'
alias = None
description = 'Snapshots currently running system'

def get_parser(self):
p = ArgumentParser(description)
padd_argument('-u', '--upload', action='store_true', default=False,
help='Upload to repository after snapshot')
p.add_argument('-f', '--force', action='store_true', default=False,
help='Force overwriting an existing image')
return p

def __call__(self, args, extra_args=None):
pass

0 comments on commit 3525d9b

Please sign in to comment.