vagrant-cachier-ng/lib/vagrant-cachier/plugin.rb

28 lines
878 B
Ruby
Raw Permalink Normal View History

2014-02-01 18:18:58 +00:00
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 hp joyent openstack rackspace
2014-07-20 23:13:36 +00:00
softlayer proxmox managed azure brightbox cloudstack vcloud
2014-05-07 18:50:06 +00:00
vsphere )
end
end
require_relative "hooks"
require_relative "capabilities"