ruby-ore / ore

Mine beautiful RubyGems from Ore
MIT License
241 stars 29 forks source link

Support renaming custom templates with `ore install URI [TEMPLATE_NAME]` #54

Open tomeon opened 6 years ago

tomeon commented 6 years ago

This PR adds support for assigning custom names to templates installed with ore install. The idea is that you can name your repository something like vagrant_plugin_ore_template.git, but clone it into the directory ~/.ore/templates/vagrant_plugin. This way, mine will expose the options --vagrant-plugin and --no-vagrant-plugin rather than --vagrant-plugin-ore-template and --no-vagrant-plugin-ore-template.

I've added a nearly-bare git repository as a testing fixture in order to permit running ore install during tests without having to hit the network. If this is overkill, I am happy to replace the local repo with an external repo; perhaps one of the ruby-ore org's custom templates?

Thanks in advance for your consideration!