vagrant-cachier-ng/lib/vagrant-cachier/plugin.rb
Joshua Hoblitt 3b1869c486 rename DigitalOcean provider to digital_ocean
The name of the DigitalOcean plugin gem is `vagrant-digitalocean` but the
actual provider plugin registered with vagrant is `:digital_ocean`.

See: 9dddc13084/lib/vagrant-digitalocean/plugin.rb (L10)
2015-05-11 18:44:02 -07:00

28 lines
892 B
Ruby

unless Gem::Requirement.new('>= 1.4.0').satisfied_by?(Gem::Version.new(Vagrant::VERSION))
raise 'vagrant-cachier requires Vagrant >= 1.4.0 in order to work!'
end
# Add our custom translations to the load path
I18n.load_path << File.expand_path("../../../locales/en.yml", __FILE__)
module VagrantPlugins
module Cachier
class Plugin < Vagrant.plugin('2')
name 'vagrant-cachier'
config 'cache' do
require_relative "config"
Config
end
end
# Keep an eye on https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins#wiki-providers
# for more.
CLOUD_PROVIDERS = %w( aws cloudstack digitalocean digital_ocean hp joyent openstack rackspace
softlayer proxmox managed azure brightbox cloudstack vcloud
vsphere )
end
end
require_relative "hooks"
require_relative "capabilities"