cook 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cook.rb +1 -1
- data/lib/rake/config.rb +3 -0
- metadata +1 -1
data/lib/cook.rb
CHANGED
data/lib/rake/config.rb
CHANGED
@@ -8,6 +8,7 @@ end
|
|
8
8
|
require 'construct';
|
9
9
|
require 'yaml';
|
10
10
|
require 'fileutils';
|
11
|
+
require 'cook';
|
11
12
|
#require 'regexp';
|
12
13
|
|
13
14
|
class Construct
|
@@ -259,6 +260,7 @@ class Conf
|
|
259
260
|
end
|
260
261
|
|
261
262
|
def self.add_cookbook(aCookbookPath)
|
263
|
+
Rake::Application.mesg "Loading cookbook: [#{aCookbookPath}]";
|
262
264
|
$LOAD_PATH.unshift(aCookbookPath+'/lib');
|
263
265
|
Conf.add_recipes_path(aCookbookPath+'/');
|
264
266
|
Conf.add_recipes_path(aCookbookPath+'/recipes/');
|
@@ -389,6 +391,7 @@ module Rake
|
|
389
391
|
FileUtils.mkdir_p('logs');
|
390
392
|
Rake::Application.openLogger('logs/'+Conf.log_file_name.gsub(/\//,'_')+'-buildLog');
|
391
393
|
Rake::Application.logger.level = Logger::DEBUG;
|
394
|
+
Rake::Application.mesg "Cook version: #{Cook::VERSION}";
|
392
395
|
Conf.add_global_cookbooks();
|
393
396
|
Rake::Application.mesg "Building in #{myCookbookDir}";
|
394
397
|
Conf.add_cookbook(myCookbookDir);
|