PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/bin/bitbucket-backup

https://bitbucket.org/mariusmarais/bitbucket-backup
Ruby | 18 lines | 11 code | 6 blank | 1 comment | 1 complexity | 746b63da065c89edc70d4728369faf07 MD5 | raw file
Possible License(s): 0BSD
  1. #!/usr/bin/env ruby
  2. require "highline/import"
  3. require "bitbucket-backup"
  4. if ARGV.empty?
  5. puts "Must specify a path to backup repos to."
  6. exit
  7. end
  8. username = ask("Username: ")
  9. password = ask("Password: ") do |q|
  10. q.echo = false
  11. end
  12. Bitbucket::Backup.run(username, password, ARGV.first)