class Middleman::Cli::GlobAction

def queue_current_paths

Returns:
  • (void) -
def queue_current_paths
  @cleaning_queue = []
  return unless File.exist?(@destination)
  paths = ::Middleman::Util.all_files_under(@destination)
  @cleaning_queue += paths.select do |path|
    path.to_s !~ /\/\./ || path.to_s =~ /\.(htaccess|htpasswd)/
  end
end