Sha256: 722ff2c928d4ffff16650319614a15c43ceb036548007d8c42457471a69aa3fc

Contents?: true

Size: 1005 Bytes

Versions: 3

Compression:

Stored size: 1005 Bytes

Contents

require 'vagrant'

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, priority: 7) do
        require File.expand_path("../provider", __FILE__)

        I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
        I18n.reload!

        Provider
      end

      command "lxc" do
        require_relative 'command/root'
        Command::Root
      end

      config(:lxc, :provider) do
        require File.expand_path("../config", __FILE__)
        Config
      end

      synced_folder(:lxc) do
        require File.expand_path("../synced_folder", __FILE__)
        SyncedFolder
      end

      provider_capability("lxc", "public_address") do
        require_relative "provider/cap/public_address"
        Provider::Cap::PublicAddress
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-lxc-1.2.1 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.2.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.1.0 lib/vagrant-lxc/plugin.rb