Sha256: bdea91f9fcb9cbdc7e97c7e258c84126a7f2f2d9f1dca1606a2f6e1db0d0c1ab
Contents?: true
Size: 1008 Bytes
Versions: 12
Compression:
Stored size: 1008 Bytes
Contents
require 'vagrant' require 'vagrant-hosts' require 'vagrant-hosts/version' class VagrantHosts::Plugin < Vagrant.plugin(2) name 'hosts' description <<-DESC This plugin adds commands and provisioners to manage static host entries on Vagrant guests. DESC config(:hosts, :provisioner) do require_relative 'config' VagrantHosts::Config end provisioner(:hosts) do require_relative 'provisioner/hosts' VagrantHosts::Provisioner::Hosts end # Guest capabilities for vagrant-hosts [:darwin, :linux, :solaris, :solaris11].each do |os| guest_capability(os, 'sync_hosts') do require_relative 'cap' VagrantHosts::Cap::SyncHosts::POSIX end end guest_capability(:windows, 'sync_hosts') do require_relative 'cap' VagrantHosts::Cap::SyncHosts::Windows end command(:hosts) do require_relative 'command' VagrantHosts::Command end # ConfigBuilder tie-ins def self.config_builder_hook require_relative 'config_builder' end end
Version data entries
12 entries across 12 versions & 1 rubygems