Sha256: a3cdd210e7a307625f53ec5987142bb701aa8f29b85177833b0ce72b9a25503d
Contents?: true
Size: 1.04 KB
Versions: 6
Compression:
Stored size: 1.04 KB
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 guest_capability(:linux, 'sync_hosts') do require_relative 'cap' VagrantHosts::Cap::SyncHosts::POSIX end guest_capability(:solaris, 'sync_hosts') do require_relative 'cap' VagrantHosts::Cap::SyncHosts::POSIX 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
6 entries across 6 versions & 1 rubygems