Skip to content

Instantly share code, notes, and snippets.

@dvhthomas
Created November 5, 2009 05:42
Show Gist options
  • Save dvhthomas/226800 to your computer and use it in GitHub Desktop.
Save dvhthomas/226800 to your computer and use it in GitHub Desktop.
$LOAD_PATH << './source/Tasks/'
# Command configuration items - if this changes it should change
# for all users
APP_SETTINGS = YAML.load_file('common.yml')
# Create user settings if not present
setting_template = "config.yml.template"
if !File.exist?(setting_template.ext(''))
p setting_template.ext('')
cp setting_template, setting_template.ext('')
end
# Load up the desired deployment target or default to development
# This is set at the irake command line using DEPLOY=production
DEPLOYMENT= (ENV['DEPLOY'] or 'development')
USER_SETTINGS = YAML.load_file('config.yml')[DEPLOYMENT]
require 'build.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment