Permalink
Browse files

Add support for .effuseignore file

  • Loading branch information...
1 parent 724728f commit 6bad79f57ab83bf66b4dec0a0b689d6b7d90803f @programble committed Apr 4, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 bin/effuse
View
@@ -4,7 +4,16 @@ require 'optparse'
require 'ostruct'
require 'fileutils'
-options = OpenStruct.new(:verbose => false, :exclude => ['.git', '.gitignore', '.gitmodules', '*~', '.*~', '.*.swp'], :clean => false, :noconfirm => nil)
+options = OpenStruct.new(:verbose => false,
+ :clean => false,
+ :noconfirm => nil,
+ :exclude => %w[.effuseignore .git .gitignore .gitmodules *~ .*~ .*.swp])
+
+if File.exist?('.effuseignore')
+ File.open('.effuseignore').lines do |line|
+ options.exclude << line.chomp
+ end
+end
OptionParser.new do |o|
o.banner = 'Usage: effuse [OPTION...] [DEST]'

0 comments on commit 6bad79f

Please sign in to comment.