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

Side by Side Diff: scripts/slave/recipe_modules/file/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: Moved field_composer_test with its buddies Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 7
8 class FileApi(recipe_api.RecipeApi): 8 class FileApi(recipe_api.RecipeApi):
9 """FileApi contains helper functions for reading and writing files.""" 9 """FileApi contains helper functions for reading and writing files."""
10 10
11 def __init__(self, **kwargs): 11 def __init__(self, **kwargs):
12 super(FileApi, self).__init__(**kwargs) 12 super(FileApi, self).__init__(**kwargs)
13 13
14 def copy(self, name, source, dest, step_test_data=None, **kwargs): 14 def copy(self, name, source, dest, step_test_data=None, **kwargs):
15 """Copy a file.""" 15 """Copy a file."""
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 self.m.python.inline( 189 self.m.python.inline(
190 'rmwildcard %s in %s' % (pattern, path), 190 'rmwildcard %s in %s' % (pattern, path),
191 """ 191 """
192 import sys 192 import sys
193 from common import chromium_utils 193 from common import chromium_utils
194 194
195 chromium_utils.RemoveFilesWildcards(sys.argv[1], root=sys.argv[2]) 195 chromium_utils.RemoveFilesWildcards(sys.argv[1], root=sys.argv[2])
196 """, 196 """,
197 args=[pattern,path], 197 args=[pattern,path],
198 **kwargs) 198 **kwargs)
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/example/api.py ('k') | scripts/slave/recipe_modules/file/test_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698