Skip to content

Commit

Permalink
Update rakefile with comments clarifying the VCS section
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Sep 29, 2009
1 parent aee1707 commit af34e92
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Expand Up @@ -22,14 +22,22 @@ require 'rubygems'
require 'chef'
require 'json'

# Make sure you have loaded constants first
# Load constants from rake config file.
require File.join(File.dirname(__FILE__), 'config', 'rake')

# And choosen a VCS
# 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.
#
# Comment out these lines to skip the update.

if File.directory?(File.join(TOPDIR, ".svn"))
$vcs = :svn
elsif File.directory?(File.join(TOPDIR, ".git"))
$vcs = :git
end

# Load common, useful tasks from Chef.
# rake -T to see the tasks this loads.

load 'chef/tasks/chef_repo.rake'

0 comments on commit af34e92

Please sign in to comment.