Skip to content
Newer
Older
100644 26 lines (20 sloc) 683 Bytes
b12a37e @bcurren added recipe for grid to replace sizeup
bcurren authored
1 unless File.exists?(node["grid_app_path"])
2
3 remote_file "#{Chef::Config[:file_cache_path]}/Grid.app.zip" do
4 source node["grid_download_uri"]
5 owner WS_USER
6 end
7
8 execute "unzip grid" do
9 command "unzip #{Chef::Config[:file_cache_path]}/Grid.app.zip -d #{Chef::Config[:file_cache_path]}/"
10 user WS_USER
11 end
12
13 execute "copy grid to /Applications" do
14 command "mv #{Chef::Config[:file_cache_path]}/Grid.app #{Regexp.escape(node["grid_app_path"])}"
15 user WS_USER
16 group "admin"
17 end
18
19 ruby_block "test to see if Grid.app was installed" do
20 block do
21 raise "Grid.app was not installed" unless File.exists?(node["grid_app_path"])
22 end
23 end
24
25 end
Something went wrong with that request. Please try again.