Skip to content
Newer
Older
100755 33 lines (27 sloc) 1002 Bytes
93e5689 @bkidwell Initial commit
authored Aug 15, 2011
1 #!/usr/bin/env python
2
3 # Copyright 2011 Brendan Kidwell <brendan@glump.net>.
4 #
5 # This file is part of caliload.
6 #
7 # caliload is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # caliload is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with caliload. If not, see <http://www.gnu.org/licenses/>.
19
20 """Launch script"""
21
22 from caliload import commands
23 from caliload.optionsobject import OptionsObject
24 import caliload
25 import sys
26
27 options = OptionsObject()
28
29 cmd = getattr(commands, options.action)
30 (exitcode, output) = cmd()
31 if output: print output
32 sys.exit(exitcode)
Something went wrong with that request. Please try again.