Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
Add support for .effuseignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
causal-agent committed Apr 4, 2012
1 parent 724728f commit 6bad79f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/effuse
Expand Up @@ -4,7 +4,16 @@ require 'optparse'
require 'ostruct' require 'ostruct'
require 'fileutils' 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| OptionParser.new do |o|
o.banner = 'Usage: effuse [OPTION...] [DEST]' o.banner = 'Usage: effuse [OPTION...] [DEST]'
Expand Down

0 comments on commit 6bad79f

Please sign in to comment.