Support passing the workspace to work in.

This commit is contained in:
Pedro Algarvio 2013-09-09 20:43:27 +01:00
parent e68b28afae
commit db017a4edf

View file

@ -253,6 +253,16 @@ def parse():
Parse the CLI options
'''
parser = optparse.OptionParser()
parser.add_option(
'-w', '--workspace',
default=os.path.abspath(
os.environ.get(
'WORKSPACE',
os.path.dirname(os.path.dirname(__file__))
)
),
help='Path the execution workspace'
)
parser.add_option(
'--platform',
default=os.environ.get('JENKINS_SALTCLOUD_VM_PLATFORM', None),