Class: VagrantPlugins::DNS::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-dns/env.rb

Overview

Environment data to build up and persist through the middleware chain

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnv

Returns a new instance of Env.



22
23
24
25
26
27
28
29
# File 'lib/vagrant-dns/env.rb', line 22

def initialize
  # Make it compatible with both 1.1.5 and 1.2.x
  @ui = begin
          ::Vagrant::UI::Colored.new("dns")
        rescue ArgumentError
          ::Vagrant::UI::Colored.new.scope("dns")
        end
end

Instance Attribute Details

#config_fileObject

Returns the value of attribute config_file.



18
19
20
# File 'lib/vagrant-dns/env.rb', line 18

def config_file
  @config_file
end

#daemon_pathObject

Returns the value of attribute daemon_path.



16
17
18
# File 'lib/vagrant-dns/env.rb', line 16

def daemon_path
  @daemon_path
end

#dns_serverObject

Returns the value of attribute dns_server.



20
21
22
# File 'lib/vagrant-dns/env.rb', line 20

def dns_server
  @dns_server
end

#tmp_pathPathname

Returns the tmp path for this plugin.

Returns:

  • (Pathname)


14
15
16
# File 'lib/vagrant-dns/env.rb', line 14

def tmp_path
  @tmp_path
end

#uiVagrant::UI::Interface

Returns a scoped vagrant ui

Returns:

  • (Vagrant::UI::Interface)


9
10
11
# File 'lib/vagrant-dns/env.rb', line 9

def ui
  @ui
end