Method: Cup::Server::ViewScope#file_list

Defined in:
lib/cup/server/view_scope.rb

#file_listObject



93
94
95
96
97
98
99
# File 'lib/cup/server/view_scope.rb', line 93

def file_list
  Dir["#{Cup::Directory.current.path}/**/*"].select do |full_path|
    File.file?(full_path)
  end.map do |full_path|
    File.relative_path(Cup::Directory.current.path, full_path)
  end
end