Skip to content
Browse files

Arq

  • Loading branch information...
1 parent 1ae0747 commit bc187a5d020e1bb1ffab867e4099dbe99da47525 Roderik van der Veer committed
Showing with 29 additions and 0 deletions.
  1. +29 −0 recipes/arq.rb
View
29 recipes/arq.rb
@@ -0,0 +1,29 @@
+unless File.exists?("/Applications/Arq.app")
+
+ remote_file "#{Chef::Config[:file_cache_path]}/arq.zip" do
+ source "http://www.haystacksoftware.com/arq/Arq.zip"
+ owner WS_USER
+ #checksum "56aef138f06fc92d641c424742bc40887cd19e6029f20409ec06ad5514b8cff1"
+ end
+
+ execute "unzip arq" do
+ command "unzip #{Chef::Config[:file_cache_path]}/arq.zip -d #{Chef::Config[:file_cache_path]}/"
+ user WS_USER
+ end
+
+ execute "copy Arq to /Applications" do
+ command "mv #{Chef::Config[:file_cache_path]}/Arq.app #{Regexp.escape("/Applications/Arq.app")}"
+ user WS_USER
+ group "admin"
+ end
+
+ ruby_block "test to see if Arq.app was installed" do
+ block do
+ raise "Arq.app was not installed" unless File.exists?("/Applications/Arq.app")
+ end
+ end
+
+end
+
+
+

0 comments on commit bc187a5

Please sign in to comment.
Something went wrong with that request. Please try again.