Added 'script', a module that can push and insantly run a remote script. Replaces the need to copy+command.

This is a bit of a rough draft, some error handling still needs to be added.
This commit is contained in:
Michael DeHaan 2012-10-20 12:12:07 -04:00
parent 7e2d6c0050
commit 4104478abd
5 changed files with 98 additions and 8 deletions

View file

@ -29,6 +29,7 @@ import optparse
import time
import datetime
import subprocess
import traceback
# modules that are ok that they do not have documentation strings
BLACKLIST_MODULES = [
@ -149,11 +150,8 @@ def get_docstring(filename, verbose=False):
doc = yaml.load(child.value.s)
except:
if verbose:
raise
else:
print "unable to parse %s" % filename
traceback.print_exc()
print "unable to parse %s" % filename
return doc