来自github的vagrant安装插件 [英] vagrant install plugin from github

查看:267
本文介绍了来自github的vagrant安装插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Vagrant进行部署,我们最终希望在Rackspace上部署此群集。 vagrant-rackspace 插件是很自然的选择,但它有一些未包含在内的错误最新的0.1.1版本(特别是 vagrant provision 不起作用)。我通过合并来自其他人的工作,在存储库的个人分支中解决了此问题。是否有可能从github安装vagrant插件?

We are using Vagrant for deployment and we'd eventually like to deploy this cluster on Rackspace. The vagrant-rackspace plugin is a natural choice, but it has a few bugs that are not included in the latest 0.1.1 release (notably that vagrant provision doesn't work). I've resolved this issue in my personal fork of the repository by merging work from others. Is it possible to do install a vagrant plugin from github?

显而易见的事情没有用:

The obvious thing didn't work:

[unix]$ vagrant plugin install vagrant-rackspace --plugin-source https://github.com/deanmalmgren/vagrant-rackspace
Installing the 'vagrant-rackspace' plugin. This can take a few minutes...
The plugin 'vagrant-rackspace' could not be found in local or remote
repositories. Please check the name of the plugin and try again.

我是新来的流浪汉和红宝石,所以任何指针都会非常感谢。谢谢!

I'm new to vagrant and ruby, so any pointers here would be greatly appreciated. Thanks!

推荐答案

截至今天,我只看到两种解决方法:

As of today I see only two workarounds:


  1. 你可以 rake build 插件,将生成的.gem上传到 gemfury ,然后将其用作 - plugin-source

  2. 您可以从本地源安装插件,例如 vagrant插件安装/path/to/your/bugfixed.gem

  1. you could rake build the plugin, upload the resulting .gem to gemfury, and then use this as the --plugin-source.
  2. you could install the plugin from a local source, e.g. vagrant plugin install /path/to/your/bugfixed.gem

在最后,我希望看到像 Gemfile 这样的Vagrant插件。 AFAIK目前还没有这种功能,但这里有功能请求

In the end, I would love to see something like a Gemfile for Vagrant plugins. AFAIK there ain't no such thing yet but here is a feature request

编辑:现在实际上有一个称为绑定器的令人敬畏的项目。 在绑定器中添加git位置支持的功能要求仍然很突出,但这是它应该被修复的地方imho

actually there is an awesome project called bindler now. The feature request to add git location support in bindler is still outstanding, but this is the place where it should be fixed imho

这篇关于来自github的vagrant安装插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆