Sha256: 93e109fc6df02d08a1a073a993a69ad38316d65680974384958b7863aa798d64

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

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

      extra = []
      extra << {parallel: true} if Vagrant::Backports.vagrant_1_2_or_later?
      provider(:lxc, *extra) 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

      if Vagrant::Backports.vagrant_1_4_or_later?
        synced_folder(:lxc) do
          require File.expand_path("../synced_folder", __FILE__)
          SyncedFolder
        end
      end

      if Vagrant::Backports.vagrant_1_5_or_later?
        provider_capability("lxc", "public_address") do
          require_relative "provider/cap/public_address"
          Provider::Cap::PublicAddress
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-lxc-1.0.1 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.0.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.0.0.alpha.3 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.0.0.alpha.2 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.0.0.alpha.1 lib/vagrant-lxc/plugin.rb