plugin.rb
807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##
# Test with something like:
# ~> bundle exec vagrant ls
#
module Vagrant
module Lxd
class Plugin < Vagrant.plugin('2')
name "Lxd"
description <<-DESC
Vagrant LXD provider
DESC
provider(:lxd, priority: 7) do
require File.expand_path("../provider", __FILE__)
Provider
end
#config(:lxd, :provider) do
# require File.expand_path("../config", __FILE__)
# Config
#end
#synced_folder(:virtualbox) do
# require File.expand_path("../synced_folder", __FILE__)
# SyncedFolder
#end
command 'ls' do
require File.expand_path("../command", __FILE__)
Command
end
autoload :Action, File.expand_path("../action", __FILE__)
end
end
end
# vim: set et ts=2 sw=2: