Commits

Kamil Trzciński committed 1aa13bb Draft

added temp dir

  • Participants
  • Parent commits fcf0191

Comments (0)

Files changed (2)

bitbucket2github/bitbucket2github.py

 from scriptine.shell import sh
 import bitbucket, github
 
+tmp_dir = vault.get('bitbucket2github', 'tempdir')
 bitbucket_username = vault.get('bitbucket.org', 'username')
 github_username = vault.get('github.com', 'username')
 github_password = vault.get('github.com', github_username)
 bitbucket_url = 'https://bitbucket.org/{0}/{1}'
 bitbucket_git_url = 'https://bitbucket.org/{0}/{1}.git'
 github_url = 'git+ssh://git@github.com/{0}/{1}.git'
-tmp_dir = tempfile.gettempdir()
 
 def backup(repo):
     print "Syncing %s from BitBucket to GitHub" % repo['name']

bitbucket2github/github2bitbucket.py

 from scriptine.shell import sh
 import bitbucket, github
 
+tmp_dir = vault.get('github2bitbucket', 'tempdir')
 github_username = vault.get('github.com', 'username')
 bitbucket_username = vault.get('bitbucket.org', 'username')
 bitbucket_password = vault.get('bitbucket.org', bitbucket_username)
 
 bitbucket_url = 'ssh://git@bitbucket.org/{0}/{1}.git'
-tmp_dir = tempfile.gettempdir()
 
 def backup(repo):
     print "Syncing %s from GitHub to BitBucket" % repo['name']