25 lines
458 B
Ruby
Raw Normal View History

2020-04-05 15:30:37 +02:00
# frozen_string_literal: true
require "cask/artifact/moved"
module Cask
module Artifact
class Mdimporter < Moved
def self.english_name
"Spotlight metadata importer"
end
def install_phase(**options)
super(**options)
reload_spotlight(**options)
end
private
def reload_spotlight(command: nil, **_)
command.run!("/usr/bin/mdimport", args: ["-r", target])
end
end
end
end