Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 586 Bytes
include_recipe "pivotal_workstation::addloginitem"
app_path="/Applications/ShiftIt.app"
unless File.exists?(app_path)
remote_file "#{Chef::Config[:file_cache_path]}/ShiftIt.app.zip" do
source "https://github.com/downloads/onsi/ShiftIt/ShiftIt.app.zip"
mode "0644"
end
execute "unzip ShiftIt" do
command "unzip #{Chef::Config[:file_cache_path]}/ShiftIt.app.zip ShiftIt.app/* -d /Applications/"
user WS_USER
group "admin"
end
# start up on login
execute "Start ShiftIt on login" do
command "su #{WS_USER} -c \"addloginitem #{app_path}\""
end
end
Jump to Line
Something went wrong with that request. Please try again.