Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tomeon
Copy link

@tomeon tomeon commented Jun 9, 2018

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!

tomeon added 4 commits June 8, 2018 10:14
* Module::Common is now the home of the `ROOT` constant and the
  `#cleanup!` method.
* `ROOT` is now a `Pathname` object rather than a string.
* `#have_git?` returns true if the `git` executable can be located,
  false otherwise.
* `#from_root_path` returns a `Pathname` object under the `ROOT` path.
This repository is for use in verifying the behavior of `ore install`.
`cli install` now recognizes an optional second parameter that, when
provided, is used as the subdirectory of `~/.ore/templates` into which
the template repo will be cloned.
Verify that `ore install` clones templates to the expected locations
depending on whether or not the optional basename parameter was
provided.
@tomeon tomeon changed the title Support renaming custom templates with ore install Support renaming custom templates with ore install URI [TEMPLATE_NAME] Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant