lib/build/task.rb in build-1.0.9 vs lib/build/task.rb in build-1.0.10

- old
+ new

@@ -58,11 +58,11 @@ @node.dirty? end def spawn(*arguments) if wet? - @logger.info('shell') {arguments} + @logger.info(:shell) {arguments} status = @group.spawn(*arguments) if status != 0 raise CommandFailure.new(self, arguments, status) end @@ -78,42 +78,42 @@ end def touch(path) return unless wet? - @logger.info('shell'){ ['touch', path] } + @logger.info(:shell){ ['touch', path] } FileUtils.touch(path) end def cp(source_path, destination_path) return unless wet? - @logger.info('shell'){ ['cp', source_path, destination_path]} + @logger.info(:shell){ ['cp', source_path, destination_path]} FileUtils.copy(source_path, destination_path) end def rm(path) return unless wet? - @logger.info('shell'){ ['rm -rf', path] } + @logger.info(:shell){ ['rm -rf', path] } FileUtils.rm_rf(path) end def mkpath(path) return unless wet? unless File.exist?(path) - @logger.info('shell'){ ['mkpath', path] } + @logger.info(:shell){ ['mkpath', path] } FileUtils.mkpath(path) end end def install(source_path, destination_path) return unless wet? - @logger.info('shell'){ ['install', source_path, destination_path]} + @logger.info(:shell){ ['install', source_path, destination_path]} FileUtils.install(source_path, destination_path) end # Legacy FileUtils access, replaced with direct function calls. def fs @@ -125,15 +125,15 @@ end def invoke_rule(rule, arguments, &block) arguments = rule.normalize(arguments, self) - @logger.debug('invoke') {"-> #{rule}(#{arguments.inspect})"} + @logger.debug(:invoke) {"-> #{rule}(#{arguments.inspect})"} node = RuleNode.new(rule, arguments, &block) task = invoke(node) - @logger.debug('invoke') {"<- #{rule}(...) -> #{rule.result(arguments)}"} + @logger.debug(:invoke) {"<- #{rule}(...) -> #{rule.result(arguments)}"} return rule.result(arguments) end end end