Sha256: 73f2537c4f1cb6bcd783932f2d83e932450d71434c00e973e407e27be9c92816

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

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__)
        init!
        Provider
      end

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

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

      protected

      def self.init!
        return if defined?(@_init)
        I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../../locales/en.yml')
        I18n.reload!
        @_init = true
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrant-lxc-1.4.3 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.4.2 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.4.1 lib/vagrant-lxc/plugin.rb
vagrant-lxc-2.1-patch-1.4.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.4.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.3.1 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.3.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.2.4 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.2.3 lib/vagrant-lxc/plugin.rb
vagrant-lxc-1.2.2 lib/vagrant-lxc/plugin.rb