Blame view

config/boxen.rb 1.05 KB
3a47d364c   Jianwei Han   Remove caches for...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  # This file will be loaded by config/basic early in a Boxen run. Use
  # it to provide any custom code or behavior your Boxen setup requires.
  
  # Change the prefix boxen is installed to.
  # ENV['BOXEN_HOME'] = '/opt/boxen'
  
  # Change the repo boxen will use.
  # ENV['BOXEN_REPO_NAME'] = 'boxen/our-boxen'
  
  # Boxen binary packaging
  # ENV["BOXEN_S3_ACCESS_KEY"] = ''
  # ENV["BOXEN_S3_SECRET_KEY"] = ''
  # ENV["BOXEN_S3_BUCKET"] = ''
  
  # Auto-report issues on failed runs
  # ENV["BOXEN_ISSUES_ENABLED"] = 'yes'
  
  # Submit audit data to an arbitrary HTTP endpoint
  # ENV["BOXEN_WEB_HOOK_URL"] = 'https://some-uri.com/boxen'
  #
  # required for Github Enterprise
  # ENV["BOXEN_GITHUB_ENTERPRISE_URL"] = 'https://github.yourdomain.com'
  
  # required for Github Enterprise (defaults to "https://github.com/%s")
  # ENV['BOXEN_REPO_URL_TEMPLATE'] = 'https://github.yourdomain.com/%s'
a2d6ec482   Jianwei Han   Fix problems for ...
26
27
28
29
30
31
32
33
34
  
  # Setup config for Homebrew
  require 'fileutils'
  
  facts_dir = '/opt/boxen/config/facts'
  homebrew_json = '{"use_default_homebrew": true}'
  
  FileUtils.mkdir_p facts_dir
  File.write "#{facts_dir}/homebrew.json", homebrew_json