Permalink
Browse files

addloginitem: now can add applications to start automatically

  • Loading branch information...
1 parent 2aedd0e commit a1ee4004ef440ec91a721bcfeadca65df642e67d Brian Cunnie committed Oct 26, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 recipes/addloginitem.rb
View
@@ -0,0 +1,19 @@
+include_recipe "pivotal_workstation::user_owns_usr_local"
+
+addloginitem_path="/usr/local/bin/addloginitem"
+
+unless File.exists?(addloginitem_path)
+
+ remote_file addloginitem_path do
+ source "https://github.com/downloads/pivotalexperimental/addLoginItem/addLoginItem"
+ mode '0755'
+ owner WS_USER
+ end
+
+ ruby_block "test to see if addloginitem was installed" do
+ block do
+ raise "#{addloginitem_path} was not installed" unless File.exists?(addloginitem_path)
+ end
+ end
+
+end

0 comments on commit a1ee400

Please sign in to comment.