class TdToolbelt < Cask version 'latest' sha256 :no_check url 'http://toolbelt.treasuredata.com/mac' homepage 'http://toolbelt.treasuredata.com/' container_type :naked preflight do system '/bin/mv', '--', "#{destination_path}/mac", "#{destination_path}/td-toolbelt.pkg" end pkg 'td-toolbelt.pkg' uninstall :pkgutil => 'com.td.toolbelt' # zap :pkgutil => 'org.ruby-lang.installer' end