Commits

Tim Savage  committed 29968a5 Draft

Updated to use wrapped local

  • Participants
  • Parent commits df6a598

Comments (0)

Files changed (3)

File denim/pip.py

 # -*- encoding:utf8 -*-
 import os
-from fabric.api import env, local, put, require
+from fabric.api import env, put, require
 from denim import paths, scm, utils
 
 __all__ = ('install_requirements', )
     path_to_requirements = paths.local_working_path(file_name='%s-requirements.txt' % revision)
     scm.export_file(revision, 'app/requirements.txt', path_to_requirements)
 
-    local('pip bundle -r %s %s' % (path_to_requirements, bundle_file))
+    utils.local('pip bundle -r %s %s' % (path_to_requirements, bundle_file))
     return bundle_file
 
 

File denim/scm/git.py

 # -*- encoding:utf8 -*-
-from fabric.api import local
+from denim.utils import local
 
 
 def tag(comment, tag_name):
     args = []
     if prefix:
         args.append('--prefix=' + prefix)
-    local('git archive %s %s %s > %s' % (' '.join(args), revision, sub_path, out_file))
+    args.append(revision)
+    args.append(sub_path)
+    local('git archive %s > %s' % (' '.join(args), out_file))
 
 
 def export_file(revision, path, out_file):

File denim/scm/hg.py

 # -*- encoding:utf8 -*-
-from fabric.api import local
+from denim.utils import local
 
 
 def tag(comment, tag_name):