public
Description: A gem that allows you to create, list, and modify hostnames with ease...
Homepage: http://bjeanes.com
Clone URL: git://github.com/bjeanes/ghost.git
bjeanes (author)
Wed Sep 02 03:30:35 -0700 2009
commit  eb9aa6e85386944d28be969ac95ddb185ef46f81
tree    fd6c6b5a447d29aadf3458817c2368e279733e4e
parent  63e0e539e57b227cd1e087e8946f5ed330793803
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