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

Commit

Permalink
Bartender
Browse files Browse the repository at this point in the history
  • 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.
28 changes: 28 additions & 0 deletions recipes/bartender.rb
@@ -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



0 comments on commit 9552564

Please sign in to comment.