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

Commit

Permalink
Arq
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 bc187a5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions 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.