class Object
Public Instance Methods
gt(n)
click to toggle source
# File lib/lre/rake_ext.rb, line 10 def gt(n) t = Rake::Task[n] #puts "action size #{t.actions.size}" t.actions = t.actions[-1..-1] if t.actions.size > 1 t.invoke end
gte(n)
click to toggle source
# File lib/lre/rake_ext.rb, line 17 def gte(n) t = Rake::Task[n] #puts "action size #{t.actions.size}" t.actions = t.actions[-1..-1] if t.actions.size > 1 t.execute end
monitored_paths()
click to toggle source
# File lib/lre/watchr_ext.rb, line 5 def monitored_paths p = base_path ? "#{base_path}/**/*" : "**/*" paths = Dir[p].select do |path| @script.patterns.any? {|p| path.match(p) } end paths.push(@script.path).compact! paths.map {|path| Pathname(path).expand_path } end