Skip to content

Commit

Permalink
- fix the --exclude flag to add to an array as ivar @excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Mar 30, 2012
1 parent c8e2657 commit 2bbd1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fpm/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class FPM::Command < Clamp::Command
"Edit the package spec before building.", :default => false
option ["-x", "--exclude"], "EXCLUDE_PATTERN",
"Exclude paths matching pattern (shell wildcard globs valid here). " \
"Patterns are evaluated relative to the root of the working directory, " \
"or the directory specified by -C" do |val|
"If you have multiple file patterns to exclude, specify this flag " \
"multiple times.", :attribute_name => :excludes do |val|
@excludes ||= []
@excludes << val
end # -x / --exclude
Expand Down

0 comments on commit 2bbd1d8

Please sign in to comment.