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.
- Loading branch information
Roderik van der Veer
committed
Dec 7, 2012
1 parent
1ae0747
commit 9552564
Showing
1 changed file
with
28 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,28 @@ | ||
unless File.exists?("/Applications/Bartender.app") | ||
|
||
remote_file "#{Chef::Config[:file_cache_path]}/Bartender.zip" do | ||
source "http://www.macbartender.com/Demo/Bartender.zip" | ||
owner WS_USER | ||
end | ||
|
||
execute "unzip Bartender" do | ||
command "unzip #{Chef::Config[:file_cache_path]}/Bartender.zip -d #{Chef::Config[:file_cache_path]}/" | ||
user WS_USER | ||
end | ||
|
||
execute "copy Bartender to /Applications" do | ||
command "mv #{Chef::Config[:file_cache_path]}/Bartender.app #{Regexp.escape("/Applications/Bartender.app")}" | ||
user WS_USER | ||
group "admin" | ||
end | ||
|
||
ruby_block "test to see if Bartender.app was installed" do | ||
block do | ||
raise "Bartender.app was not installed" unless File.exists?("/Applications/Bartender.app") | ||
end | ||
end | ||
|
||
end | ||
|
||
|
||
|