This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added recipe for installing BetterTouchTool
- Loading branch information
Colin Deeb and Ryan Spore
authored and
Colin Deeb
committed
Dec 12, 2012
1 parent
1c913ef
commit 4b63e9d
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node.default["bettertouchtool_download_uri"] = "http://www.boastr.de/BetterTouchTool.zip" | ||
node.default["bettertouchtool_app_path"] = "/Applications/BetterTouchTool.app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters