Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (25 sloc) 723 Bytes
#
# Rakefile for Chef Server Repository
#
require 'rubygems'
require 'chef'
require 'json'
# load constants from rake config file.
require File.join(File.dirname(__FILE__), 'config', 'rake')
# load chef config
begin
Chef::Config.from_file(File.join(ENV['HOME'], '.chef', 'knife.rb'))
rescue
# do nothing
end
# Detect the version control system and assign to $vcs. Used by the update
# task in chef_repo.rake (below). The install task calls update, so this
# is run whenever the repo is installed.
if File.directory?(File.join(TOPDIR, ".svn"))
$vcs = :svn
elsif File.directory?(File.join(TOPDIR, ".git"))
$vcs = :git
end
Dir[ File.join(File.dirname(__FILE__), 'tasks', '*.rake') ].sort.each do |f|
load f
end