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.match(/\/\./) || path.to_s.match(/\.htaccess/)
  end
end