Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (25 sloc) 0.723 kB
#
# 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
Jump to Line
Something went wrong with that request. Please try again.