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 bc187a5
Showing
1 changed file
with
29 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,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 | ||
|
||
|
||
|