Mercurial > hg > config
comparison python/install_config.py @ 580:b563a9c1f2b7
STUB: python/install_config.py
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Mon, 20 Jan 2014 19:20:57 -0800 |
| parents | f894bd779943 |
| children | 0295141d9eeb |
comparison
equal
deleted
inserted
replaced
| 579:f894bd779943 | 580:b563a9c1f2b7 |
|---|---|
| 166 action='store_true', default=False, | 166 action='store_true', default=False, |
| 167 help="display debian packages to install") | 167 help="display debian packages to install") |
| 168 parser.add_option('-l', '--list', '--list-steps', | 168 parser.add_option('-l', '--list', '--list-steps', |
| 169 dest='list_steps', | 169 dest='list_steps', |
| 170 action='store_true', default=False, | 170 action='store_true', default=False, |
| 171 help="list steps to be run") | 171 help="list steps to be run and exit") |
| 172 options, args = parser.parse_args() | 172 options, args = parser.parse_args() |
| 173 | 173 |
| 174 # plan steps | 174 # plan steps |
| 175 steps = [InitializeRepository, UbuntuPackages] | 175 steps = [InitializeRepository, UbuntuPackages] |
| 176 if options.debian_packages: | 176 if options.debian_packages: |
| 178 | 178 |
| 179 if options.list_steps: | 179 if options.list_steps: |
| 180 # list steps if specified | 180 # list steps if specified |
| 181 for step in steps: | 181 for step in steps: |
| 182 print step | 182 print step |
| 183 parser.exit() | |
| 183 | 184 |
| 184 # execute steps | 185 # execute steps |
| 185 for step in steps: | 186 for step in steps: |
| 186 instance = step() | 187 instance = step() |
| 187 instance() | 188 instance() |
