lib/r10k/root.rb in r10k-0.0.5 vs lib/r10k/root.rb in r10k-0.0.6

- old
+ new

@@ -1,11 +1,14 @@ require 'r10k' require 'r10k/module' require 'r10k/synchro/git' +require 'r10k/logging' class R10K::Root + include R10K::Logging + # @!attribute [r] name # The directory name of this root attr_reader :name # @!attribute [r] basedir @@ -47,10 +50,10 @@ name = mod[0] args = mod[1] R10K::Module.new(name, "#{full_path}/modules", args) end rescue Errno::ENOENT - puts "#{self}: #{full_path} does not exist, cannot enumerate modules." + logger.warn "#{self}: #{full_path} does not exist, cannot enumerate modules." [] end def full_path @full_path ||= File.expand_path(File.join @basedir, @name)