2014-02-01 16:18:58 -02: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
|
|
|
|
|
2013-08-03 14:26:10 -03:00
|
|
|
# Add our custom translations to the load path
|
|
|
|
I18n.load_path << File.expand_path("../../../locales/en.yml", __FILE__)
|
|
|
|
|
2013-06-07 22:37:02 -04:00
|
|
|
module VagrantPlugins
|
2013-05-22 19:38:26 -03:00
|
|
|
module Cachier
|
|
|
|
class Plugin < Vagrant.plugin('2')
|
|
|
|
name 'vagrant-cachier'
|
|
|
|
config 'cache' do
|
|
|
|
require_relative "config"
|
|
|
|
Config
|
|
|
|
end
|
|
|
|
end
|
2014-02-01 20:24:14 -02:00
|
|
|
|
|
|
|
# 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 20:13:36 -03:00
|
|
|
softlayer proxmox managed azure brightbox cloudstack vcloud
|
2014-05-07 20:50:06 +02:00
|
|
|
vsphere )
|
2013-05-22 19:38:26 -03:00
|
|
|
end
|
|
|
|
end
|
2014-02-01 18:47:32 -02:00
|
|
|
|
|
|
|
require_relative "hooks"
|
|
|
|
require_relative "capabilities"
|