1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

path = (ARGV.shift || '.').gsub(/\/^/,'')
files = %w(app config lib db public spec test vendor/plugins Rakefile Capfile CHANGELOG NOTES).collect{|file| path + '/' + file }

files.delete('./test') if File.exist?(File.expand_path('spec'))

system "mate #{files.join(' ')}"