Permalink
Browse files

Bartender

  • Loading branch information...
1 parent 1ae0747 commit 95525644a3c6a16cba83b405f5721c5c5e8381d4 Roderik van der Veer committed Dec 7, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 recipes/bartender.rb
View
@@ -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.