Module: VagrantPlugins::DNS::Action

Defined in:
lib/vagrant-dns/action.rb,
lib/vagrant-dns/action/setup_env.rb,
lib/vagrant-dns/action/stop_dns_server.rb,
lib/vagrant-dns/action/create_resolvers.rb,
lib/vagrant-dns/action/start_dns_server.rb,
lib/vagrant-dns/action/register_patterns.rb,
lib/vagrant-dns/action/create_daemons_dir.rb

Defined Under Namespace

Classes: CreateDaemonsDir, CreateResolvers, RegisterPatterns, SetupEnv, StartDNSServer, StopDNSServer

Class Method Summary collapse

Class Method Details

.cleanObject



20
21
22
23
24
25
26
# File 'lib/vagrant-dns/action.rb', line 20

def clean
  @clean ||= ::Vagrant::Action::Builder.new.tap do |b|
    b.use ::Vagrant::Action::Builtin::EnvSet, dns: VagrantPlugins::DNS::Env.new
    b.use SetupEnv
    b.use StopDNSServer
  end
end

.setupObject



10
11
12
13
14
15
16
17
18
# File 'lib/vagrant-dns/action.rb', line 10

def setup
  @setup ||= ::Vagrant::Action::Builder.new.tap do |b|
    b.use ::Vagrant::Action::Builtin::EnvSet, dns: VagrantPlugins::DNS::Env.new
    b.use SetupEnv
    b.use CreateResolvers
    b.use CreateDaemonsDir
    b.use RegisterPatterns
  end
end

.startObject



28
29
30
31
32
33
34
# File 'lib/vagrant-dns/action.rb', line 28

def start
  @start ||= ::Vagrant::Action::Builder.new.tap do |b|
    b.use ::Vagrant::Action::Builtin::EnvSet, dns: VagrantPlugins::DNS::Env.new
    b.use SetupEnv
    b.use StartDNSServer
  end
end