forked from vmware-archive/pivotal_workstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recipe for downloading FreeRuler. Lion no longer provides a FreeRuler.
- Loading branch information
Winston Teo
committed
Jul 10, 2012
1 parent
e0c2c97
commit 300fd28
Showing
2 changed files
with
23 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["freeruler_download_uri"] = "http://www.pascal.com/software/freeruler/FreeRuler1.7b5.zip" | ||
node.default["freeruler_app_path"] = "/Applications/Free Ruler 1.7b5.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,21 @@ | ||
unless File.exists?(node["freeruler_app_path"]) | ||
|
||
remote_file "#{Chef::Config[:file_cache_path]}/FreeRuler1.7b5.zip" do | ||
source node["freeruler_download_uri"] | ||
owner WS_USER | ||
end | ||
|
||
execute "unzip FreeRuler to /Applications" do | ||
command "unzip -o #{Chef::Config[:file_cache_path]}/FreeRuler1.7b5.zip -x __MACOSX* -d /Applications/" | ||
user WS_USER | ||
# This is required to unzip into Applications | ||
group "admin" | ||
end | ||
|
||
ruby_block "test to see if FreeRuler was installed" do | ||
block do | ||
raise "FreeRuler install failed" unless File.exists?(node["freeruler_app_path"]) | ||
end | ||
end | ||
|
||
end |