#
# Cookbook:: test
# Recipe:: default
#
# Copyright:: 2016-2017, Chef Software, Inc.

node.default['homebrew']['formulas'] = %w(redis)
node.default['homebrew']['casks'] = %w(caffeine)
node.default['homebrew']['taps'] = [
  'homebrew/nginx',
  {
    'tap' => 'homebrew/science',
    'url' => 'https://github.com/homebrew/homebrew-science.git',
  },
  {
    'tap' => 'homebrew/bundle',
    'full' => true,
  },
  {
    'tap' => 'homebrew/services',
    'url' => 'https://github.com/homebrew/homebrew-services.git',
    'full' => true,
  },
  { 'tap' => 'homebrew/php',
    'url' => 'https://github.com/homebrew/homebrew-php.git',
    'full' => false,
  },
]
node.default['homebrew']['enable-analytics'] = false

ssh_known_hosts_entry 'github.com' do
  group 'wheel'
end

include_recipe 'build-essential::default'
include_recipe 'homebrew::install_formulas'
include_recipe 'homebrew::install_casks'
include_recipe 'homebrew::install_taps'

#
# Cookbook:: test
# Recipe:: default
#
# Copyright:: 2016-2017, Chef Software, Inc.

node.default['homebrew']['formulas'] = %w(redis)
node.default['homebrew']['casks'] = %w(caffeine)
node.default['homebrew']['taps'] = [
  'homebrew/nginx',
  {
    'tap' => 'homebrew/science',
    'url' => 'https://github.com/homebrew/homebrew-science.git',
  },
  {
    'tap' => 'homebrew/bundle',
    'full' => true,
  },
  {
    'tap' => 'homebrew/services',
    'url' => 'https://github.com/homebrew/homebrew-services.git',
    'full' => true,
  },
  { 'tap' => 'homebrew/php',
    'url' => 'https://github.com/homebrew/homebrew-php.git',
    'full' => false,
  },
]
node.default['homebrew']['enable-analytics'] = false

ssh_known_hosts_entry 'github.com' do
  group 'wheel'
end

build_essential 'Install compilation tools'
include_recipe 'homebrew::install_formulas'
include_recipe 'homebrew::install_casks'
include_recipe 'homebrew::install_taps'

Use the build-essential resource not the recipe
Use the build-essential resource not the recipe

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
