Skip to content

Instantly share code, notes, and snippets.

Created October 13, 2015 16:49
Show Gist options
  • Save anonymous/d9290c204d37fae27fb1 to your computer and use it in GitHub Desktop.
Save anonymous/d9290c204d37fae27fb1 to your computer and use it in GitHub Desktop.
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