No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Snag public git repos from the internet and upload them to your private bitbucket server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

= 0.4.0
= 3.0.0
 Project Readme

bitbucket_snagger

Snag public git repos from the internet and upload them to your private bitbucket server

Credentials

Logging out

bundle exec bitbucket_snagger logout

Creating and uploading a single git repo to bitbucket

  • --projectKey is the 3 letter projectKey, eg pup
  • --repositorySlug is the repository to upload to within the project, eg apache
  • --upstream is the upstream repository to merge changes from
  • --verbosity sets debug mode (optional)
  • snag is the command to run (always snag to update)
bundle exec bitbucket_snagger \
  --projectKey pup \
  --repositorySlug apache \
  --upstream https://github.com/puppetlabs/puppetlabs-apache \
  --verbosity debug \
  snag

Creating and updating lots of repos in bitbucket

Just make yourself a handy bash script, like this:

#!/bin/bash
cmd="bitbucket_snagger --projectKey pup"
$cmd --repositorySlug accounts --upstream https://github.com/puppetlabs/puppetlabs-accounts snag
$cmd --repositorySlug apache --upstream https://github.com/puppetlabs/puppetlabs-apache snag
$cmd --repositorySlug concat --upstream https://github.com/puppetlabs/puppetlabs-concat snag
$cmd --repositorySlug firewall --upstream https://github.com/puppetlabs/puppetlabs-firewall snag
$cmd --repositorySlug git --upstream https://github.com/puppetlabs/puppetlabs-git snag
$cmd --repositorySlug haproxy --upstream https://github.com/puppetlabs/puppetlabs-haproxy snag
$cmd --repositorySlug inifile --upstream https://github.com/puppetlabs/puppetlabs-inifile snag
$cmd --repositorySlug java --upstream https://github.com/puppetlabs/puppetlabs-java snag
$cmd --repositorySlug java_ks --upstream https://github.com/puppetlabs/puppetlabs-java_ks snag
$cmd --repositorySlug motd --upstream https://github.com/puppetlabs/puppetlabs-motd snag
$cmd --repositorySlug mysql --upstream https://github.com/puppetlabs/puppetlabs-mysql snag
$cmd --repositorySlug noop --upstream https://github.com/trlinkin/trlinkin-noop snag
$cmd --repositorySlug nsswitch --upstream https://github.com/trlinkin/puppet-nsswitch snag
$cmd --repositorySlug ntp --upstream https://github.com/puppetlabs/puppetlabs-ntp snag
$cmd --repositorySlug postgresql --upstream https://github.com/puppetlabs/puppetlabs-postgresql snag
$cmd --repositorySlug puppet_agent --upstream https://github.com/puppetlabs/puppetlabs-puppet_agent snag
$cmd --repositorySlug ssh --upstream https://github.com/saz/puppet-ssh snag
$cmd --repositorySlug staging --upstream https://github.com/voxpupuli/puppet-staging snag
$cmd --repositorySlug stdlib --upstream https://github.com/puppetlabs/puppetlabs-stdlib snag
$cmd --repositorySlug sudo --upstream https://github.com/saz/puppet-sudo snag
$cmd --repositorySlug tagmail --upstream https://github.com/puppetlabs/puppetlabs-tagmail snag
$cmd --repositorySlug tomcat --upstream https://github.com/puppetlabs/puppetlabs-tomcat snag
$cmd --repositorySlug vcsrepo --upstream https://github.com/puppetlabs/puppetlabs-vcsrepo snag

Making this prettier is left as an exercise for the reader

Notes

  • Attempting to access insecure http repositories will work but will output a warning message