Plugins 如何要求本地vagrant插件(vagrant 1.5.0.dev)

Plugins 如何要求本地vagrant插件(vagrant 1.5.0.dev),plugins,vagrant,Plugins,Vagrant,我如何要求我目前正在开发的插件不发布到rubygems?以前我可以要求使用Vagrant.require\u插件,但现在它打印出了它不推荐的内容 这是我的档案 source 'https://rubygems.org' gem 'bundler' gem "vagrant", github: "mitchellh/vagrant" group :plugin do gem 'vagrant-sheogorath', :path => '/Users/sandric/vagrant

我如何要求我目前正在开发的插件不发布到rubygems?以前我可以要求使用Vagrant.require\u插件,但现在它打印出了它不推荐的内容

这是我的档案

source 'https://rubygems.org'

gem 'bundler'

gem "vagrant", github: "mitchellh/vagrant"

group :plugin do
  gem 'vagrant-sheogorath', :path => '/Users/sandric/vagrant-sheogorath/'
end
这是我的流浪汉档案:

require "vagrant-sheogorath"

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
当我运行bundle exec vagrant插件列表时,以下是输出:

sandric@sandric-mac ~/v/provision> bundle exec vagrant plugin list
Vagrant appears to be running in a Bundler environment. Your
existing Gemfile will be used. Vagrant will not auto-load any plugins.
You must load any plugins you want manually in a Vagrantfile. You can
force Vagrant to take over with VAGRANT_FORCE_BUNDLER.

You appear to be running Vagrant outside of the official installers.
Note that the installers are what ensure that Vagrant has all required
dependencies, and Vagrant assumes that these dependencies exist. By
running outside of the installer environment, Vagrant may not function
properly. To remove this warning, install Vagrant using one of the
official packages from vagrantup.com.

No plugins installed.
当我尝试安装它时:

sandric@sandric-mac ~/v/provision> bundle exec vagrant plugin install vagrant-sheogorath
Vagrant appears to be running in a Bundler environment. Your
existing Gemfile will be used. Vagrant will not auto-load any plugins.
You must load any plugins you want manually in a Vagrantfile. You can
force Vagrant to take over with VAGRANT_FORCE_BUNDLER.

You appear to be running Vagrant outside of the official installers.
Note that the installers are what ensure that Vagrant has all required
dependencies, and Vagrant assumes that these dependencies exist. By
running outside of the installer environment, Vagrant may not function
properly. To remove this warning, install Vagrant using one of the
official packages from vagrantup.com.

Installing the 'vagrant-sheogorath' plugin. This can take a few minutes...
ERROR warden: Error occurred: Vagrant's built-in bundler management mechanism is disabled because
Vagrant is running in an external bundler environment. In these
cases, plugin management does not work with Vagrant. To install
plugins, use your own Gemfile. To load plugins, either put the
plugins in the `plugins` group in your Gemfile or manually require
them in a Vagrantfile.

似乎在开发时不需要安装插件。您只需要将它包含在
文件
:plugin
组中,Vagrant应该在运行时为您加载它


顺便说一下,存储库主分支上已经存在一个分支。

正确。如果您想使用未发布的Vagrant版本进行测试,则不需要安装dev插件。正如错误消息所说,使用GEM文件中的
:plugins
组或Vagrantfile中的
require
,以及
bundle exec vagrant up/provision/…