Sha256: 434fa3d84b5db93fb1d7fc42a6cf7a219b98e31c6e43dd23bf81ab7f3fef6a20

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Motoko
  module Resolvers
    class RebootRequired < BaseResolver
      def resolve_for(node)
        %w[
          apt_reboot_required
          pkg_reboot_required
          yum_reboot_required
        ].each do |fact|
          value = node.fact(fact)
          return value unless value.nil?
        end

        nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motoko-1.2.1 lib/motoko/resolvers/reboot_required.rb
motoko-1.2.0 lib/motoko/resolvers/reboot_required.rb
motoko-1.1.0 lib/motoko/resolvers/reboot_required.rb
motoko-1.0.0 lib/motoko/resolvers/reboot_required.rb