Class: Landrush::Cap::Darwin::ConfigureVisibilityOnHost
- Inherits:
-
Object
- Object
- Landrush::Cap::Darwin::ConfigureVisibilityOnHost
- Defined in:
- lib/landrush/cap/host/darwin/configure_visibility_on_host.rb
Class Attribute Summary collapse
-
.config_dir ⇒ Object
writeonly
Sets the attribute config_dir.
-
.sudo ⇒ Object
writeonly
Sets the attribute sudo.
Class Method Summary collapse
Class Attribute Details
.config_dir=(value) ⇒ Object
Sets the attribute config_dir
6 7 8 |
# File 'lib/landrush/cap/host/darwin/configure_visibility_on_host.rb', line 6 def config_dir=(value) @config_dir = value end |
.sudo=(value) ⇒ Object
Sets the attribute sudo
6 7 8 |
# File 'lib/landrush/cap/host/darwin/configure_visibility_on_host.rb', line 6 def sudo=(value) @sudo = value end |
Class Method Details
.configure_visibility_on_host(env, _ip, tld) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/landrush/cap/host/darwin/configure_visibility_on_host.rb', line 8 def configure_visibility_on_host(env, _ip, tld) @env = env @tld = tld if contents_match? info 'Host DNS resolver config looks good.' else info 'Need to configure the host.' write_config! end end |