Class: VagrantPlugins::DNS::Env
- Inherits:
-
Object
- Object
- VagrantPlugins::DNS::Env
- Defined in:
- lib/vagrant-dns/env.rb
Overview
Environment data to build up and persist through the middleware chain
Instance Attribute Summary collapse
-
#config_file ⇒ Object
Returns the value of attribute config_file.
-
#daemon_path ⇒ Object
Returns the value of attribute daemon_path.
-
#dns_server ⇒ Object
Returns the value of attribute dns_server.
-
#tmp_path ⇒ Pathname
Returns the tmp path for this plugin.
-
#ui ⇒ Vagrant::UI::Interface
Returns a scoped vagrant ui.
Instance Method Summary collapse
-
#initialize ⇒ Env
constructor
A new instance of Env.
Constructor Details
#initialize ⇒ Env
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_file ⇒ Object
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_path ⇒ Object
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_server ⇒ Object
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_path ⇒ Pathname
Returns the tmp path for this plugin.
14 15 16 |
# File 'lib/vagrant-dns/env.rb', line 14 def tmp_path @tmp_path end |
#ui ⇒ Vagrant::UI::Interface
Returns a scoped vagrant ui
9 10 11 |
# File 'lib/vagrant-dns/env.rb', line 9 def ui @ui end |