Sha256: 2211fa6889a3392eac38085d6209fe33cdfaa5508017547601de16e4ff79a9d7

Contents?: true

Size: 728 Bytes

Versions: 2

Compression:

Stored size: 728 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) 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
    end

    def self.vagrant_1_3_or_later
      Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.3.0')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-lxc-0.8.0 lib/vagrant-lxc/plugin.rb
vagrant-lxc-0.7.0 lib/vagrant-lxc/plugin.rb