Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (15 sloc) 0.529 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
include_recipe "pivotal_workstation::addloginitem"

app_path="/Applications/KeyCastr.app"

unless File.exists?(app_path)
  dmg_package "KeyCastr" do
    dmg_name "KeyCastr"
    source "http://software-files-a.cnet.com/s/software/11/00/84/53/keycastr_0.8.0.dmg"
    checksum "ecf59a2e46a8ca450c12f426a4d41000de1c3010a5c46fe12f23fdc647f3f1e7"
    owner WS_USER
    action :install
  end

  # start up on login
  execute "Start KeyCastr #{app_path} on login" do
    command "su #{WS_USER} -c \"addloginitem #{app_path}\""
  end
end
Something went wrong with that request. Please try again.