Sha256: 490271965c3d8328f800cb0da70756f4849d1956499dc33773660b9e6f6ab05c
Contents?: true
Size: 932 Bytes
Versions: 1
Compression:
Stored size: 932 Bytes
Contents
# encoding: utf-8 require 'logger' require 'rake/helpers/logger' # extend Rake task with a logger module Rake class Task alias_method :initialize_base, :initialize alias_method :execute_base, :execute attr_reader :logger def initialize(name, app) @logger = Logger.new(STDOUT) initialize_base(name, app) end # replace execute to indicate what method is executed def execute(args=nil) puts "Executing #{name}" execute_base(args) end def out(msg) logger.info(msg) end def trace? application.options.trace || $DEBUG || false end def shortname scope = @scope.dup.pop.to_s n = name.dup n.gsub!(scope + ':', '') unless scope.empty? return n end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rake-delphi-0.0.4 | lib/rake/helpers/raketask.rb |