class Invoker::Power::Distro::Ubuntu
Public Instance Methods
get_user_confirmation?()
click to toggle source
Calls superclass method
Invoker::Power::Distro::Base#get_user_confirmation?
# File lib/invoker/power/setup/distro/ubuntu.rb, line 37 def get_user_confirmation? if using_systemd_resolved? && tld != 'localhost' Invoker::Logger.puts("Ubuntu installations using systemd-resolved (typically Ubuntu 17+) only support the .localhost domain, so your tld setting (or the default) will be ignored.".colorize(:yellow)) end super end
install_other()
click to toggle source
Calls superclass method
Invoker::Power::Distro::Base#install_other
# File lib/invoker/power/setup/distro/ubuntu.rb, line 25 def install_other using_systemd_resolved? ? nil : super end
install_packages()
click to toggle source
Calls superclass method
Invoker::Power::Distro::Base#install_packages
# File lib/invoker/power/setup/distro/ubuntu.rb, line 21 def install_packages using_systemd_resolved? ? "socat" : super end
install_required_software()
click to toggle source
Calls superclass method
Invoker::Power::Distro::Debian#install_required_software
# File lib/invoker/power/setup/distro/ubuntu.rb, line 12 def install_required_software if using_systemd_resolved? # Don't install dnsmasq if Ubuntu version uses systemd-resolved for DNS because they conflict system("apt-get --assume-yes install socat") else super end end
resolver_file()
click to toggle source
Calls superclass method
Invoker::Power::Distro::Base#resolver_file
# File lib/invoker/power/setup/distro/ubuntu.rb, line 29 def resolver_file using_systemd_resolved? ? nil : super end
tld()
click to toggle source
# File lib/invoker/power/setup/distro/ubuntu.rb, line 33 def tld using_systemd_resolved? ? 'localhost' : @tld end
using_systemd_resolved?()
click to toggle source
# File lib/invoker/power/setup/distro/ubuntu.rb, line 7 def using_systemd_resolved? return @_using_systemd_resolved if defined?(@_using_systemd_resolved) @_using_systemd_resolved = system("systemctl is-active --quiet systemd-resolved") end