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

Unified Diff: recipe_modules/shutil/example.py

Issue 1866313002: recipe engine: add tempfile and shutil modules (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: presubmit Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: recipe_modules/shutil/example.py
diff --git a/recipe_modules/uuid/example.py b/recipe_modules/shutil/example.py
similarity index 55%
copy from recipe_modules/uuid/example.py
copy to recipe_modules/shutil/example.py
index 862cf20d53b59df82490286257f5a6234c9ea4ef..bf767fa5f186fec95e6a68c5d6b28b87a6e1a567 100644
--- a/recipe_modules/uuid/example.py
+++ b/recipe_modules/shutil/example.py
@@ -1,16 +1,13 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
+# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
- 'step',
- 'uuid',
+ 'shutil',
]
-
def RunSteps(api):
- uuid = api.uuid.random()
- api.step('echo', ['echo', str(uuid)])
+ api.shutil.rmtree('foo')
def GenTests(api):

Powered by Google App Engine
This is Rietveld 408576698