class Landrush::Cap::Linux::ConfigureVisibilityOnHost
Public Class Methods
configure_visibility_on_host(env, ip, tlds)
click to toggle source
# File lib/landrush/cap/host/linux/configure_visibility_on_host.rb, line 6 def configure_visibility_on_host(env, ip, tlds) env.host.capability(:install_dnsmasq) unless env.host.capability(:dnsmasq_installed) tlds.each do |tld| env.host.capability(:create_dnsmasq_config, ip, tld) end env.host.capability(:restart_dnsmasq) rescue Vagrant::Errors::CapabilityNotFound => e env.ui.info("Your host was detected as '#{e.extra_data[:host]}' for which the host capability " \ "'#{e.extra_data[:cap]}' is not available.") env.ui.info('Check the documentation for the manual instructions to configure the visibility on the host.') end