Commit graph

5 commits

Author SHA1 Message Date
gfyoung
7ec8af5017 Enable even more frozen string for lib/gitlab
Enables frozen string for the following:

* lib/gitlab/hook_data/**/*.rb
* lib/gitlab/i18n/**/*.rb
* lib/gitlab/import/**/*.rb
* lib/gitlab/import_export/**/*.rb
* lib/gitlab/kubernetes/**/*.rb
* lib/gitlab/legacy_github_import/**/*.rb
* lib/gitlab/manifest_import/**/*.rb
* lib/gitlab/metrics/**/*.rb
* lib/gitlab/middleware/**/*.rb

Partially addresses gitlab-org/gitlab-ce#47424.
2018-11-16 17:41:14 -08:00
Bob Van Landuyt
48b17e991a Add helper for accessing lfs_objects for project
This makes accessing LFS Objects for a project easier

  project.lfs_storage_project.lfs_objects`

becomes

  project.all_lfs_objects

This will make the refactor in
https://gitlab.com/gitlab-org/gitlab-ce/issues/39769 easier to deal
with.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
10d0f438d8 Download LFS-files from object storage for exports
Downloading the stream directly to the archive. In order to avoid
conflicts with the cache.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
79cb4d99c0 Import projects with LFS objects
If the LFS object already exist, we'll link it tot he existing one, if
not we'll create it.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
84ee2ddbcd Export LFS Objects when exporting a project
The LFS files will be included in the `lfs-objects` directory in the archive.
2018-04-05 10:21:51 +02:00