Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for .effuseignore file

  • Loading branch information...
commit 6bad79f57ab83bf66b4dec0a0b689d6b7d90803f 1 parent 724728f
@programble authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 bin/effuse
View
11 bin/effuse
@@ -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]'
Please sign in to comment.
Something went wrong with that request. Please try again.