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
.clean ⇒ Object
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
|
.start ⇒ Object
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
|