Sha256: 07bf405a3295a4f065de18de2fdd98b99d1073d768612f2ea1e71346798e39b1

Contents?: true

Size: 1.11 KB

Versions: 46

Compression:

Stored size: 1.11 KB

Contents

module VagrantPlugins
  module HyperV
    autoload :Action, File.expand_path("../action", __FILE__)
    autoload :Errors, File.expand_path("../errors", __FILE__)

    class Plugin < Vagrant.plugin("2")
      name "Hyper-V provider"
      description <<-DESC
      This plugin installs a provider that allows Vagrant to manage
      machines in Hyper-V.
      DESC

      provider(:hyperv, priority: 4) do
        require_relative "provider"
        init!
        Provider
      end

      config(:hyperv, :provider) do
        require_relative "config"
        init!
        Config
      end

      provider_capability("hyperv", "public_address") do
        require_relative "cap/public_address"
        Cap::PublicAddress
      end

      provider_capability("hyperv", "snapshot_list") do
        require_relative "cap/snapshot_list"
        Cap::SnapshotList
      end

      protected

      def self.init!
        return if defined?(@_init)
        I18n.load_path << File.expand_path(
          "templates/locales/providers_hyperv.yml", Vagrant.source_root)
        I18n.reload!
        @_init = true
      end
    end
  end
end

Version data entries

46 entries across 42 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.9.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.8.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.7.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.6.2 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.6.1 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.6.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.5.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.4.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.3.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.2.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.2.0.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.1.4.0 plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.1.2.0 plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/plugins/providers/hyperv/plugin.rb
vagrant-unbundled-2.1.1.0 plugins/providers/hyperv/plugin.rb