35 lines
841 B
Ruby
35 lines
841 B
Ruby
require 'vagrant'
|
|
require 'vagrant-backports/utils'
|
|
|
|
module Vagrant
|
|
module LXC
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "vagrant-lxc"
|
|
description <<-EOF
|
|
The LXC provider allows Vagrant to manage and control
|
|
LXC-based virtual machines.
|
|
EOF
|
|
|
|
provider(:lxc, parallel: true) do
|
|
require File.expand_path("../provider", __FILE__)
|
|
|
|
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
|
|
I18n.reload!
|
|
|
|
Provider
|
|
end
|
|
|
|
config(:lxc, :provider) do
|
|
require File.expand_path("../config", __FILE__)
|
|
Config
|
|
end
|
|
|
|
if Vagrant::Backports.vagrant_1_4_or_later?
|
|
synced_folder(:lxc) do
|
|
require File.expand_path("../synced_folder", __FILE__)
|
|
SyncedFolder
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|