Sha256: 020d99b1b2d06c2d38116bb2411cb87bc97b9097a33f9c73b45e2f2061081918

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

# frozen_string_literal: true

require 'pathname'

module VagrantPlugins
  # This is used to configure, manage, create and destroy local where vagrant by itself cannot
  module ProviderLocal
    lib_path = Pathname.new(File.expand_path('vagrant-local', __dir__))
    autoload :Action, lib_path.join('action')
    autoload :Executor, lib_path.join('executor')
    autoload :Driver, lib_path.join('driver')
    autoload :Errors, lib_path.join('errors')
    # This function returns the path to the source of this plugin
    # @return [Pathname]
    def self.source_root
      @source_root ||= Pathname.new(File.expand_path('..', __dir__))
    end
  end
end

begin
  require 'vagrant'
rescue LoadError
  raise 'The Vagrant vagrant-local plugin must be run within Vagrant.'
end

raise 'The Vagrant vagrant-local plugin is only compatible with Vagrant 2+.' if Vagrant::VERSION < '2'

require 'vagrant-local/plugin'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vagrant-local-0.0.3 lib/vagrant-local.rb
vagrant-local-0.0.2 lib/vagrant-local.rb
vagrant-local-0.0.1 lib/vagrant-local.rb