Repomen
The Repomen are retrieving repos and can discard them at will.
Installation
Add this line to your application's Gemfile:
gem 'repomen'
And then execute:
$ bundle
Or install it yourself as:
$ gem install repomen
Usage
The Repomen are retrieving repos and can discard them at will.
url = "[email protected]:atlassian_tutorial/helloworld.git"
Repomen.retrieve(url)
When called with a block, the repo is automatically deleted afterwards
Repomen.retrieve(url) do |local_path|
# repo is cloned in +local_path+
end
# repo is gone
You can set the directory where the repos are stored:
Repomen.config.work_dir = "tmp/"
The naming scheme for the cloned repos is service/user/repo
. In the example https://github.com/rrrene/sparkr.git
would be cloned to tmp/github/rrrene/sparkr
.
Contributing
- Fork it!
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Author
René Föhring (@rrrene)
License
Repomen is released under the MIT License. See the LICENSE.txt file for further details.