Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: scripts/slave/recipe_modules/step/api.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Copyright notices Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 from slave import recipe_util 6 from recipe_engine import recipe_util
7 7
8 8
9 # Inherit from RecipeApiPlain because the only thing which is a step is 9 # Inherit from RecipeApiPlain because the only thing which is a step is
10 # run_from_dict() 10 # run_from_dict()
11 class StepApi(recipe_api.RecipeApiPlain): 11 class StepApi(recipe_api.RecipeApiPlain):
12 def __init__(self, **kwargs): 12 def __init__(self, **kwargs):
13 super(StepApi, self).__init__(**kwargs) 13 super(StepApi, self).__init__(**kwargs)
14 self._step_names = {} 14 self._step_names = {}
15 15
16 EXCEPTION = 'EXCEPTION' 16 EXCEPTION = 'EXCEPTION'
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 kwargs.setdefault('cwd', self.m.path['slave_build']) 117 kwargs.setdefault('cwd', self.m.path['slave_build'])
118 118
119 schema = self.make_config() 119 schema = self.make_config()
120 schema.set_val(kwargs) 120 schema.set_val(kwargs)
121 return self.run_from_dict(self._engine.create_step(schema)) 121 return self.run_from_dict(self._engine.create_step(schema))
122 122
123 # TODO(martiniss) delete, and make generator_script use **kwargs on step() 123 # TODO(martiniss) delete, and make generator_script use **kwargs on step()
124 @recipe_api.composite_step 124 @recipe_api.composite_step
125 def run_from_dict(self, dct): 125 def run_from_dict(self, dct):
126 return self._engine.run_step(dct) 126 return self._engine.run_step(dct)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698