Skip to content

Commit

Permalink
Merge pull request #5 from squarefrog/master
Browse files Browse the repository at this point in the history
Add brew cask font support
  • Loading branch information
Roderik van der Veer committed May 26, 2014
2 parents 4e59801 + fc795db commit 6168795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@

default['homebrewalt']['cask_apps'] = []
default['homebrewalt']['apps'] = []
default['homebrewalt']['cask_fonts'] = []
5 changes: 5 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

homebrewalt_tap 'phinze/cask'
homebrewalt_tap 'caskroom/versions'
homebrewalt_tap 'caskroom/fonts'

directory "/opt/homebrew-cask/Caskroom" do
user node['current_user']
Expand All @@ -66,3 +67,7 @@
node['homebrewalt']['apps'].each do |app|
package app
end

node['homebrewalt']['cask_fonts'].each do |font|
homebrewalt_cask "font-#{font}"
end

1 comment on commit 6168795

@xbeta
Copy link

@xbeta xbeta commented on 6168795 Jun 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think after homebrew is moved to caskroom, we have these errors:

Recipe: applications::gcc42
  * package[apple-gcc42] action install
================================================================================
Error executing action `install` on resource 'package[apple-gcc42]'
================================================================================


FormulaUnavailableError
-----------------------
No available formula for apple-gcc42 


Cookbook Trace:
---------------
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:91:in `get_version_from_formula'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:68:in `current_installed_version'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:37:in `load_current_resource'


Resource Declaration:
---------------------
# In /opt/kitchenplan/vendor/cookbooks/applications/recipes/gcc42.rb

  5:         package "apple-gcc42" do
  6:           action [:install, :upgrade]
  7:         end
  8:     when 'debian'



Compiled Resource:
------------------
# Declared in /opt/kitchenplan/vendor/cookbooks/applications/recipes/gcc42.rb:5:in `from_file'

package("apple-gcc42") do
  action [:install, :upgrade]
  retries 0
  retry_delay 2
  guard_interpreter :default
  package_name "apple-gcc42"
  cookbook_name :applications
  recipe_name "gcc42"
end




Running handlers:
[2014-06-18T13:03:16-07:00] ERROR: Running exception handlers
Running handlers complete

[2014-06-18T13:03:16-07:00] ERROR: Exception handlers complete
[2014-06-18T13:03:16-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 107 resources updated in 89.319177 seconds
[2014-06-18T13:03:16-07:00] ERROR: No available formula for apple-gcc42 
[2014-06-18T13:03:16-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Please sign in to comment.