class Hbc::Artifact::Qlplugin < Hbc::Artifact::Symlinked
  def self.artifact_english_name
    'QuickLook Plugin'
  end

  def install_phase
    super
    reload_quicklook
  end

  def uninstall_phase
    super
    reload_quicklook
  end

  def reload_quicklook
    @command.run!('/usr/bin/qlmanage', :args => ['-r'])
  end
end
