Browse files

Update rakefile with comments clarifying the VCS section

  • Loading branch information...
1 parent aee1707 commit af34e92c3c30ca5481fce378a2b10a71a4538b26 @jtimberman jtimberman committed Sep 29, 2009
Showing with 10 additions and 2 deletions.
  1. +10 −2 Rakefile
@@ -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, ".svn"))
$vcs = :svn
elsif, ".git"))
$vcs = :git
+# 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.