lib/invoker/power/setup/linux_setup.rb in invoker-1.2.0 vs lib/invoker/power/setup/linux_setup.rb in invoker-1.3.0

- old
+ new

@@ -36,9 +36,15 @@ end private def initialize_distro_installer + # Create a new facter check for systemctl (in systemd) + Facter.add(:systemctl) do + setcode do + Facter::Util::Resolution.exec("[ -e /usr/bin/systemctl ] && echo 'true' || echo 'false'") + end + end @distro_installer = Invoker::Power::Distro::Base.distro_installer end def install_resolver File.open(distro_installer.resolver_file, "w") do |fl|