File: apt_reboot_required.rb

package info (click to toggle)
puppet-module-puppetlabs-apt 9.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 572 kB
  • sloc: ruby: 438; sh: 31; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

# apt_reboot_required.rb
Facter.add(:apt_reboot_required) do
  confine osfamily: 'Debian'
  setcode do
    File.file?('/var/run/reboot-required')
  end
end