Commits

Anonymous committed 69a7c5d

fixing issues with temp blamefile

Comments (0)

Files changed (2)

 
 setup(
     name='silk-deployment',
-    version='0.2.1',
+    version='0.2.2',
     author='Brent Tubbs',
     author_email='brent.tubbs@gmail.com',
 	packages=find_packages(),
     blamefile = tempfile.NamedTemporaryFile()
     blamefile.write(_get_blame())
     blamefile.seek(0) # Rewind the file so that the putter can read it.
-    put(blamefile.name, '/'.join([env.workdir, 'blame.yaml']))
-    os.remove(blamefile)
+    remote_blame = '/'.join([env.workdir, 'blame.yaml'])
+    put(blamefile.name, remote_blame)
+    blamefile.close()
+
+    # Fix the permissions on the remote blame file
+    sudo('chmod +r %s' % remote_blame)
 
 def reload():
     """