| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from slave import recipe_api | 5 from recipe_engine import recipe_api |
| 6 | 6 |
| 7 class GomaApi(recipe_api.RecipeApi): | 7 class GomaApi(recipe_api.RecipeApi): |
| 8 """GomaApi contains helper functions for using goma.""" | 8 """GomaApi contains helper functions for using goma.""" |
| 9 | 9 |
| 10 def update_goma_canary(self): | 10 def update_goma_canary(self): |
| 11 """Returns a step for updating goma canary.""" | 11 """Returns a step for updating goma canary.""" |
| 12 self.m.gclient('update goma canary', | 12 self.m.gclient('update goma canary', |
| 13 ['sync', '--verbose', '--force', | 13 ['sync', '--verbose', '--force', |
| 14 '--revision', 'build/goma@HEAD'], | 14 '--revision', 'build/goma@HEAD'], |
| 15 cwd=self.m.path['build']) | 15 cwd=self.m.path['build']) |
| OLD | NEW |