| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Automated maintenance tool to run a script on bots. | 6 """Automated maintenance tool to run a script on bots. |
| 7 | 7 |
| 8 To use this script, write a self-contained python script (use a .zip if | 8 To use this script, write a self-contained python script (use a .zip if |
| 9 necessary), specify it on the command line and it will be packaged and triggered | 9 necessary), specify it on the command line and it will be packaged and triggered |
| 10 on all the swarming bots corresponding to the --dimension filters specified, or | 10 on all the swarming bots corresponding to the --dimension filters specified, or |
| 11 all the bots if no filter is specified. | 11 all the bots if no filter is specified. |
| 12 """ | 12 """ |
| 13 | 13 |
| 14 __version__ = '0.1' | 14 __version__ = '0.1' |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 isolated_hash, | 181 isolated_hash, |
| 182 name, | 182 name, |
| 183 bots) | 183 bots) |
| 184 | 184 |
| 185 | 185 |
| 186 if __name__ == '__main__': | 186 if __name__ == '__main__': |
| 187 fix_encoding.fix_encoding() | 187 fix_encoding.fix_encoding() |
| 188 tools.disable_buffering() | 188 tools.disable_buffering() |
| 189 colorama.init() | 189 colorama.init() |
| 190 sys.exit(main()) | 190 sys.exit(main()) |
| OLD | NEW |