summaryrefslogtreecommitdiffstats
path: root/ports.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2008-10-05 02:12:32 -0400
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2008-10-05 02:12:32 -0400
commitaecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3 (patch)
tree9f70e1b82e0335cffee6a40c149e47d9d5f8fc50 /ports.py
parentc5f9da98ce8cacf1d21641e0e6e9f18d738612ed (diff)
downloadfedora-devshell-aecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3.tar.gz
fedora-devshell-aecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3.tar.xz
fedora-devshell-aecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3.zip
Adds a close method to modules that needs to be implemented somehow
This lets you put code on the end of the lifecycle of a Module object.
Diffstat (limited to 'ports.py')
-rwxr-xr-xports.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports.py b/ports.py
index 7912243..95c0987 100755
--- a/ports.py
+++ b/ports.py
@@ -28,7 +28,9 @@ def main():
load_modules()
log.debug(args)
- print do_command(args)
+ output, module, params = do_command(args)
+ module.close()
+ log.info(output)
if __name__ == '__main__':
main() \ No newline at end of file