-
-
Save anonymous/d9290c204d37fae27fb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 # Create a list of files, directories, and/or patterns to exclude from an rsync process | |
62 # Params: | |
63 # +excludes+: | |
64 def build_exclude_list(excludes) | |
65 exclude_list = "" | |
66 excludes.each do |pattern| | |
67 exclude_list.concat("--exclude #{pattern} ") | |
68 end | |
69 return exclude_list | |
70 end | |
71 private_class_method :build_exclude_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment