Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
travula committed Apr 30, 2015
2 parents 7d080b5 + 31b2443 commit 4f3221c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions index.org
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,3 @@
ADS ::
+ creates a container within this bridged network and
+ deploys lab on this newly created container.


10 changes: 5 additions & 5 deletions src/VMManager/LabActionScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class EmptyLabActionError(Exception):
pass

class LabActionScript:
"""Runs an action which is usually a bash or Python script."""
ACTION_EMPTY = 0x1
Expand All @@ -30,7 +30,7 @@ class LabActionScript:
BACKUP_SCRIPT_KEY = "backup"
STATS_SCRIPT_KEY = "stats"
PUBLISH_SCRIPT_KEY = "publish"

def __init__(self, cmd):
self._cmd = cmd.strip()
self._state = LabActionScript.ACTION_EMPTY
Expand All @@ -49,10 +49,10 @@ def run(self):
self._state = LabActionScript.ACTION_COMPLETED
except Exception, e:
self._state = LabActionScript.ACTION_UNSUCCESSFUL
logger.error("LabActionScript::run() ose - " + str(ose))
logger.error("LabActionScript::run() exception is: %s" % str(e))

return self

def run_async(self):
""" TODO: PROVIDE A DECENT IMPLEMENTATION!!"""
"""Runs a command asynchronously."""
Expand Down Expand Up @@ -84,7 +84,7 @@ def testEmptyAction():
except EmptyLabActionError:
pass
assert(action.empty() == True)

def testGitCloneAction():
action = LabActionScript("git clone https://bitbucket.org/deviprasad/itworkshop2-spring-2014.git")
action.run()
Expand Down

0 comments on commit 4f3221c

Please sign in to comment.