bjeanes / ghost

A gem that allows you to create, list, and modify hostnames with ease...

This URL has Read+Write access

bjeanes (author)
Tue Aug 19 06:22:31 -0700 2008
commit  2e544213c9a652122a1301820b5bc53b84ed70dc
tree    c679c7756f3bd3fc4f56649db253bdba0d368041
parent  e04a72600473dba5d164af311cfbf7d32c8903bc
ghost / Rakefile
100644 28 lines (21 sloc) 0.572 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'
 
Dir['tasks/**/*.rake'].each { |rake| load rake }
 
 
#### MISC TASKS ####
 
desc "list tasks"
task :default do
  puts `rake -T`.grep(/^[^(].*$/)
end
 
desc "Outstanding TODO's"
task :todo do
  files = ["**/*.{rb,rake}" "bin/*", "README.mkdn"]
  
  File.open('TODO','w') do |f|
      FileList[*files].egrep(/TODO|FIXME/) do |file, line, text|
      output = "#{file}:#{line} - #{text.chomp.gsub(/^\s+|\s+$/ , "")}"
    
      puts output
      f.puts output
    end
  end
end