lib/cloud_providers/ec2/ec2_instance.rb
# list of directories and files to exclude when bundling an instance
list of directories and files to exclude when bundling an instance
list of directories and files to exclude when bundling an instance
def rsync_excludes(array_of_abs_paths_to_exclude=nil)
      array_of_abs_paths_to_exclude ||= %w[
            /sys
            /proc
            /dev/pts
            /dev
            /media
            /mnt
            /proc
            /sys
            /etc/ssh/ssh_host_*
            /etc/ssh/moduli
            /etc/udev/rules.d/70-persistent-net.rules
            /etc/udev/rules.d/z25_persistent-net.rules
            ]
      array_of_abs_paths_to_exclude.inject(''){|str, path| str << "--exclude=#{path}" ; str}
    end
def rsync_excludes ( array_of_abs_paths_to_exclude = nil ) array_of_abs_paths_to_exclude ||= %w[ /sys /proc /dev/pts /dev /media /mnt /proc /sys /etc/ssh/ssh_host_* /etc/ssh/moduli /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/z25_persistent-net.rules ] array_of_abs_paths_to_exclude . inject ( '' ) { | str , path | str << "--exclude=#{path}" ; str } end
list of directories and files to exclude when bundling an instance
list of directories and files to exclude when bundling an instance
array_of_abs_paths_to_exclude