Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Added recipe for installing BetterTouchTool
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Deeb and Ryan Spore authored and Colin Deeb committed Dec 12, 2012
1 parent 1c913ef commit 4b63e9d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/bettertouchtool.rb
@@ -0,0 +1,2 @@
node.default["bettertouchtool_download_uri"] = "http://www.boastr.de/BetterTouchTool.zip"
node.default["bettertouchtool_app_path"] = "/Applications/BetterTouchTool.app"
19 changes: 19 additions & 0 deletions recipes/bettertouchtool.rb
@@ -0,0 +1,19 @@
remote_file "#{Chef::Config[:file_cache_path]}/BetterTouchTool.zip" do
source node["bettertouchtool_download_uri"]
owner WS_USER
action :create_if_missing
end

execute "unzip BetterTouchTool to /Applications" do
command "unzip -o #{Chef::Config[:file_cache_path]}/BetterTouchTool.zip -x __MACOSX* -d /Applications/"
user WS_USER
not_if { File.exists?(node["bettertouchtool_app_path"]) }
# This is required to unzip into Applications
group "admin"
end

ruby_block "test to see if BetterTouchTool was installed" do
block do
raise "BetterTouchTool install failed" unless File.exists?(node["bettertouchtool_app_path"])
end
end
1 change: 1 addition & 0 deletions recipes/meta_osx_base.rb
Expand Up @@ -16,3 +16,4 @@
include_recipe "pivotal_workstation::mouse_locator"
include_recipe "pivotal_workstation::defaults_fast_key_repeat_rate"
include_recipe "pivotal_workstation::menumeters"
include_recipe "pivotal_workstation::bettertouchtool"

0 comments on commit 4b63e9d

Please sign in to comment.