Created
January 2, 2013 12:29
-
-
Save roderik/4434269 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| unless File.exists?("/Applications/1Password.app") | |
| remote_file "#{Chef::Config[:file_cache_path]}/1password.zip" do | |
| source "https://d13itkw33a7sus.cloudfront.net/dist/1P/mac/1Password-3.8.20.zip" | |
| owner WS_USER | |
| checksum "56aef138f06fc92d641c424742bc40887cd19e6029f20409ec06ad5514b8cff1" # optional | |
| end | |
| execute "unzip 1password" do | |
| command "unzip #{Chef::Config[:file_cache_path]}/1password.zip -d #{Chef::Config[:file_cache_path]}/" | |
| user WS_USER | |
| end | |
| execute "copy 1password to /Applications" do | |
| command "mv #{Chef::Config[:file_cache_path]}/1Password.app #{Regexp.escape("/Applications/1Password.app")}" | |
| user WS_USER | |
| group "admin" | |
| end | |
| ruby_block "test to see if 1Password.app was installed" do | |
| block do | |
| raise "1Password.app was not installed" unless File.exists?("/Applications/1Password.app") | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment