Module: VagrantRubydns

Defined in:
lib/vagrant-rubydns/dependent_vms.rb,
lib/vagrant-rubydns.rb,
lib/vagrant-rubydns/util.rb,
lib/vagrant-rubydns/store.rb,
lib/vagrant-rubydns/config.rb,
lib/vagrant-rubydns/plugin.rb,
lib/vagrant-rubydns/server.rb,
lib/vagrant-rubydns/command.rb,
lib/vagrant-rubydns/action/setup.rb,
lib/vagrant-rubydns/action/teardown.rb,
lib/vagrant-rubydns/resolver_config.rb,
lib/vagrant-rubydns/action/redirect_dns.rb

Overview

Keep track of dependent VMs.

Poor man’s race condition defense - touch and rm files in a directory and count them.

Defined Under Namespace

Modules: Action, Util Classes: Command, Config, DependentVMs, Plugin, ResolverConfig, Server, Store

Class Method Summary collapse

Class Method Details

.working_dirObject



8
9
10
# File 'lib/vagrant-rubydns.rb', line 8

def self.working_dir
  @working_dir ||= Pathname(File.expand_path('~/.vagrant_rubydns')).tap(&:mkpath)
end

.working_dir=(working_dir) ⇒ Object



12
13
14
# File 'lib/vagrant-rubydns.rb', line 12

def self.working_dir=(working_dir)
  @working_dir = Pathname(working_dir).tap(&:mkpath)
end