Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
26141c2a
Commit
26141c2a
authored
Feb 05, 2021
by
Markus Koller
Committed by
Vitali Tatarintev
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/FrozenStringLiteralComment violations in Rake tasks
Auto-corrected with Rubocop
parent
7be9b335
Changes
84
Hide whitespace changes
Inline
Side-by-side
Showing
84 changed files
with
162 additions
and
87 deletions
+162
-87
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-81
ee/lib/tasks/geo.rake
ee/lib/tasks/geo.rake
+2
-0
ee/lib/tasks/geo/git.rake
ee/lib/tasks/geo/git.rake
+2
-0
ee/lib/tasks/geo/replication.rake
ee/lib/tasks/geo/replication.rake
+2
-0
ee/lib/tasks/gitlab/db.rake
ee/lib/tasks/gitlab/db.rake
+2
-0
ee/lib/tasks/gitlab/elastic.rake
ee/lib/tasks/gitlab/elastic.rake
+2
-0
ee/lib/tasks/gitlab/elastic/test.rake
ee/lib/tasks/gitlab/elastic/test.rake
+2
-0
ee/lib/tasks/gitlab/geo.rake
ee/lib/tasks/gitlab/geo.rake
+2
-0
ee/lib/tasks/gitlab/indexer.rake
ee/lib/tasks/gitlab/indexer.rake
+2
-0
ee/lib/tasks/gitlab/ldap.rake
ee/lib/tasks/gitlab/ldap.rake
+2
-0
ee/lib/tasks/gitlab/seed/insights.rake
ee/lib/tasks/gitlab/seed/insights.rake
+2
-0
ee/lib/tasks/gitlab/seed/metrics.rake
ee/lib/tasks/gitlab/seed/metrics.rake
+2
-0
ee/lib/tasks/migrate/ldap.rake
ee/lib/tasks/migrate/ldap.rake
+2
-0
lib/tasks/brakeman.rake
lib/tasks/brakeman.rake
+2
-0
lib/tasks/cache.rake
lib/tasks/cache.rake
+2
-0
lib/tasks/ci/cleanup.rake
lib/tasks/ci/cleanup.rake
+2
-0
lib/tasks/cleanup.rake
lib/tasks/cleanup.rake
+2
-0
lib/tasks/config_lint.rake
lib/tasks/config_lint.rake
+2
-0
lib/tasks/db_obsolete_ignored_columns.rake
lib/tasks/db_obsolete_ignored_columns.rake
+2
-0
lib/tasks/dev.rake
lib/tasks/dev.rake
+2
-0
lib/tasks/downtime_check.rake
lib/tasks/downtime_check.rake
+2
-0
lib/tasks/eslint.rake
lib/tasks/eslint.rake
+2
-0
lib/tasks/file_hooks.rake
lib/tasks/file_hooks.rake
+2
-0
lib/tasks/frontend.rake
lib/tasks/frontend.rake
+2
-0
lib/tasks/gemojione.rake
lib/tasks/gemojione.rake
+2
-0
lib/tasks/gitlab/artifacts/check.rake
lib/tasks/gitlab/artifacts/check.rake
+2
-0
lib/tasks/gitlab/artifacts/migrate.rake
lib/tasks/gitlab/artifacts/migrate.rake
+2
-0
lib/tasks/gitlab/backup.rake
lib/tasks/gitlab/backup.rake
+2
-0
lib/tasks/gitlab/bulk_add_permission.rake
lib/tasks/gitlab/bulk_add_permission.rake
+2
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+2
-0
lib/tasks/gitlab/container_registry.rake
lib/tasks/gitlab/container_registry.rake
+2
-0
lib/tasks/gitlab/db.rake
lib/tasks/gitlab/db.rake
+2
-0
lib/tasks/gitlab/doctor/secrets.rake
lib/tasks/gitlab/doctor/secrets.rake
+2
-0
lib/tasks/gitlab/exclusive_lease.rake
lib/tasks/gitlab/exclusive_lease.rake
+2
-0
lib/tasks/gitlab/external_diffs.rake
lib/tasks/gitlab/external_diffs.rake
+2
-0
lib/tasks/gitlab/features.rake
lib/tasks/gitlab/features.rake
+2
-0
lib/tasks/gitlab/generate_sample_prometheus_data.rake
lib/tasks/gitlab/generate_sample_prometheus_data.rake
+2
-0
lib/tasks/gitlab/git.rake
lib/tasks/gitlab/git.rake
+2
-0
lib/tasks/gitlab/gitaly.rake
lib/tasks/gitlab/gitaly.rake
+2
-0
lib/tasks/gitlab/helpers.rake
lib/tasks/gitlab/helpers.rake
+2
-0
lib/tasks/gitlab/import.rake
lib/tasks/gitlab/import.rake
+2
-0
lib/tasks/gitlab/import_export.rake
lib/tasks/gitlab/import_export.rake
+2
-0
lib/tasks/gitlab/info.rake
lib/tasks/gitlab/info.rake
+2
-0
lib/tasks/gitlab/ldap.rake
lib/tasks/gitlab/ldap.rake
+2
-0
lib/tasks/gitlab/lfs/check.rake
lib/tasks/gitlab/lfs/check.rake
+2
-0
lib/tasks/gitlab/lfs/migrate.rake
lib/tasks/gitlab/lfs/migrate.rake
+2
-0
lib/tasks/gitlab/list_repos.rake
lib/tasks/gitlab/list_repos.rake
+2
-0
lib/tasks/gitlab/packages/events.rake
lib/tasks/gitlab/packages/events.rake
+2
-0
lib/tasks/gitlab/packages/migrate.rake
lib/tasks/gitlab/packages/migrate.rake
+2
-0
lib/tasks/gitlab/pages.rake
lib/tasks/gitlab/pages.rake
+2
-0
lib/tasks/gitlab/praefect.rake
lib/tasks/gitlab/praefect.rake
+2
-0
lib/tasks/gitlab/seed.rake
lib/tasks/gitlab/seed.rake
+2
-0
lib/tasks/gitlab/setup.rake
lib/tasks/gitlab/setup.rake
+2
-0
lib/tasks/gitlab/shell.rake
lib/tasks/gitlab/shell.rake
+2
-0
lib/tasks/gitlab/storage.rake
lib/tasks/gitlab/storage.rake
+2
-0
lib/tasks/gitlab/tcp_check.rake
lib/tasks/gitlab/tcp_check.rake
+2
-0
lib/tasks/gitlab/test.rake
lib/tasks/gitlab/test.rake
+2
-0
lib/tasks/gitlab/two_factor.rake
lib/tasks/gitlab/two_factor.rake
+2
-0
lib/tasks/gitlab/update_templates.rake
lib/tasks/gitlab/update_templates.rake
+2
-0
lib/tasks/gitlab/uploads/check.rake
lib/tasks/gitlab/uploads/check.rake
+2
-0
lib/tasks/gitlab/uploads/migrate.rake
lib/tasks/gitlab/uploads/migrate.rake
+2
-0
lib/tasks/gitlab/uploads/sanitize.rake
lib/tasks/gitlab/uploads/sanitize.rake
+2
-0
lib/tasks/gitlab/usage_data.rake
lib/tasks/gitlab/usage_data.rake
+2
-0
lib/tasks/gitlab/user_management.rake
lib/tasks/gitlab/user_management.rake
+2
-0
lib/tasks/gitlab/web_hook.rake
lib/tasks/gitlab/web_hook.rake
+2
-0
lib/tasks/gitlab/workhorse.rake
lib/tasks/gitlab/workhorse.rake
+2
-0
lib/tasks/gitlab/x509/update.rake
lib/tasks/gitlab/x509/update.rake
+2
-0
lib/tasks/gitlab_danger.rake
lib/tasks/gitlab_danger.rake
+2
-0
lib/tasks/grape.rake
lib/tasks/grape.rake
+2
-0
lib/tasks/haml-lint.rake
lib/tasks/haml-lint.rake
+2
-0
lib/tasks/import.rake
lib/tasks/import.rake
+2
-0
lib/tasks/karma.rake
lib/tasks/karma.rake
+2
-0
lib/tasks/lint.rake
lib/tasks/lint.rake
+2
-0
lib/tasks/migrate/composite_primary_keys.rake
lib/tasks/migrate/composite_primary_keys.rake
+2
-0
lib/tasks/migrate/migrate_iids.rake
lib/tasks/migrate/migrate_iids.rake
+2
-0
lib/tasks/migrate/setup_postgresql.rake
lib/tasks/migrate/setup_postgresql.rake
+2
-0
lib/tasks/pngquant.rake
lib/tasks/pngquant.rake
+2
-0
lib/tasks/rubocop.rake
lib/tasks/rubocop.rake
+2
-0
lib/tasks/scss-lint.rake
lib/tasks/scss-lint.rake
+2
-0
lib/tasks/setup.rake
lib/tasks/setup.rake
+2
-0
lib/tasks/test.rake
lib/tasks/test.rake
+2
-0
lib/tasks/tokens.rake
lib/tasks/tokens.rake
+2
-0
spec/lib/backup/files_spec.rb
spec/lib/backup/files_spec.rb
+0
-4
spec/tasks/gitlab/git_rake_spec.rb
spec/tasks/gitlab/git_rake_spec.rb
+0
-2
No files found.
.rubocop_manual_todo.yml
View file @
26141c2a
...
@@ -2648,87 +2648,6 @@ Style/FrozenStringLiteralComment:
...
@@ -2648,87 +2648,6 @@ Style/FrozenStringLiteralComment:
-
'
bin/secpick'
-
'
bin/secpick'
-
'
danger/changes_size/Dangerfile'
-
'
danger/changes_size/Dangerfile'
-
'
danger/metadata/Dangerfile'
-
'
danger/metadata/Dangerfile'
-
'
ee/lib/tasks/geo.rake'
-
'
ee/lib/tasks/geo/git.rake'
-
'
ee/lib/tasks/geo/replication.rake'
-
'
ee/lib/tasks/gitlab/db.rake'
-
'
ee/lib/tasks/gitlab/elastic.rake'
-
'
ee/lib/tasks/gitlab/elastic/test.rake'
-
'
ee/lib/tasks/gitlab/geo.rake'
-
'
ee/lib/tasks/gitlab/indexer.rake'
-
'
ee/lib/tasks/gitlab/ldap.rake'
-
'
ee/lib/tasks/gitlab/seed/insights.rake'
-
'
ee/lib/tasks/gitlab/seed/metrics.rake'
-
'
ee/lib/tasks/migrate/ldap.rake'
-
'
lib/tasks/brakeman.rake'
-
'
lib/tasks/cache.rake'
-
'
lib/tasks/ci/cleanup.rake'
-
'
lib/tasks/cleanup.rake'
-
'
lib/tasks/config_lint.rake'
-
'
lib/tasks/db_obsolete_ignored_columns.rake'
-
'
lib/tasks/dev.rake'
-
'
lib/tasks/downtime_check.rake'
-
'
lib/tasks/eslint.rake'
-
'
lib/tasks/file_hooks.rake'
-
'
lib/tasks/frontend.rake'
-
'
lib/tasks/gemojione.rake'
-
'
lib/tasks/gitlab/artifacts/check.rake'
-
'
lib/tasks/gitlab/artifacts/migrate.rake'
-
'
lib/tasks/gitlab/backup.rake'
-
'
lib/tasks/gitlab/bulk_add_permission.rake'
-
'
lib/tasks/gitlab/check.rake'
-
'
lib/tasks/gitlab/container_registry.rake'
-
'
lib/tasks/gitlab/db.rake'
-
'
lib/tasks/gitlab/doctor/secrets.rake'
-
'
lib/tasks/gitlab/exclusive_lease.rake'
-
'
lib/tasks/gitlab/external_diffs.rake'
-
'
lib/tasks/gitlab/features.rake'
-
'
lib/tasks/gitlab/generate_sample_prometheus_data.rake'
-
'
lib/tasks/gitlab/git.rake'
-
'
lib/tasks/gitlab/gitaly.rake'
-
'
lib/tasks/gitlab/helpers.rake'
-
'
lib/tasks/gitlab/import.rake'
-
'
lib/tasks/gitlab/import_export.rake'
-
'
lib/tasks/gitlab/info.rake'
-
'
lib/tasks/gitlab/ldap.rake'
-
'
lib/tasks/gitlab/lfs/check.rake'
-
'
lib/tasks/gitlab/lfs/migrate.rake'
-
'
lib/tasks/gitlab/list_repos.rake'
-
'
lib/tasks/gitlab/packages/events.rake'
-
'
lib/tasks/gitlab/packages/migrate.rake'
-
'
lib/tasks/gitlab/pages.rake'
-
'
lib/tasks/gitlab/praefect.rake'
-
'
lib/tasks/gitlab/seed.rake'
-
'
lib/tasks/gitlab/setup.rake'
-
'
lib/tasks/gitlab/shell.rake'
-
'
lib/tasks/gitlab/storage.rake'
-
'
lib/tasks/gitlab/tcp_check.rake'
-
'
lib/tasks/gitlab/test.rake'
-
'
lib/tasks/gitlab/two_factor.rake'
-
'
lib/tasks/gitlab/update_templates.rake'
-
'
lib/tasks/gitlab/uploads/check.rake'
-
'
lib/tasks/gitlab/uploads/migrate.rake'
-
'
lib/tasks/gitlab/uploads/sanitize.rake'
-
'
lib/tasks/gitlab/usage_data.rake'
-
'
lib/tasks/gitlab/user_management.rake'
-
'
lib/tasks/gitlab/web_hook.rake'
-
'
lib/tasks/gitlab/workhorse.rake'
-
'
lib/tasks/gitlab/x509/update.rake'
-
'
lib/tasks/gitlab_danger.rake'
-
'
lib/tasks/grape.rake'
-
'
lib/tasks/haml-lint.rake'
-
'
lib/tasks/import.rake'
-
'
lib/tasks/karma.rake'
-
'
lib/tasks/lint.rake'
-
'
lib/tasks/migrate/composite_primary_keys.rake'
-
'
lib/tasks/migrate/migrate_iids.rake'
-
'
lib/tasks/migrate/setup_postgresql.rake'
-
'
lib/tasks/pngquant.rake'
-
'
lib/tasks/rubocop.rake'
-
'
lib/tasks/scss-lint.rake'
-
'
lib/tasks/setup.rake'
-
'
lib/tasks/test.rake'
-
'
lib/tasks/tokens.rake'
-
'
qa/Gemfile'
-
'
qa/Gemfile'
-
'
qa/Rakefile'
-
'
qa/Rakefile'
-
'
qa/bin/qa'
-
'
qa/bin/qa'
...
...
ee/lib/tasks/geo.rake
View file @
26141c2a
# frozen_string_literal: true
task
spec:
[
'geo:db:test:prepare'
]
task
spec:
[
'geo:db:test:prepare'
]
namespace
:geo
do
namespace
:geo
do
...
...
ee/lib/tasks/geo/git.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:geo
do
namespace
:geo
do
namespace
:git
do
namespace
:git
do
namespace
:housekeeping
do
namespace
:housekeeping
do
...
...
ee/lib/tasks/geo/replication.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:geo
do
namespace
:geo
do
namespace
:replication
do
namespace
:replication
do
task
pause: :gitlab_environment
do
task
pause: :gitlab_environment
do
...
...
ee/lib/tasks/gitlab/db.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:db
do
namespace
:db
do
desc
'GitLab | DB | Output pseudonymity dump of selected tables'
desc
'GitLab | DB | Output pseudonymity dump of selected tables'
...
...
ee/lib/tasks/gitlab/elastic.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:elastic
do
namespace
:elastic
do
desc
"GitLab | Elasticsearch | Index everything at once"
desc
"GitLab | Elasticsearch | Index everything at once"
...
...
ee/lib/tasks/gitlab/elastic/test.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:elastic
do
namespace
:elastic
do
namespace
:test
do
namespace
:test
do
...
...
ee/lib/tasks/gitlab/geo.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:geo
do
namespace
:geo
do
desc
"Gitlab | Geo | Check replication/verification status"
desc
"Gitlab | Geo | Check replication/verification status"
...
...
ee/lib/tasks/gitlab/indexer.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:indexer
do
namespace
:indexer
do
desc
"GitLab | Indexer | Install or upgrade gitlab-elasticsearch-indexer"
desc
"GitLab | Indexer | Install or upgrade gitlab-elasticsearch-indexer"
...
...
ee/lib/tasks/gitlab/ldap.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:ldap
do
namespace
:ldap
do
desc
'GitLab | LDAP | Run a GroupSync'
desc
'GitLab | LDAP | Run a GroupSync'
...
...
ee/lib/tasks/gitlab/seed/insights.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:seed
do
namespace
:seed
do
namespace
:insights
do
namespace
:insights
do
...
...
ee/lib/tasks/gitlab/seed/metrics.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:seed
do
namespace
:seed
do
desc
"GitLab | Metrics | Setup development metrics"
desc
"GitLab | Metrics | Setup development metrics"
...
...
ee/lib/tasks/migrate/ldap.rake
View file @
26141c2a
# frozen_string_literal: true
desc
"GitLab | Migrate provider names to multiple LDAP setup"
desc
"GitLab | Migrate provider names to multiple LDAP setup"
namespace
:gitlab
do
namespace
:gitlab
do
task
migrate_ldap_providers: :environment
do
task
migrate_ldap_providers: :environment
do
...
...
lib/tasks/brakeman.rake
View file @
26141c2a
# frozen_string_literal: true
desc
'Security check via brakeman'
desc
'Security check via brakeman'
task
:brakeman
do
task
:brakeman
do
# We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
# We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
...
...
lib/tasks/cache.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:cache
do
namespace
:cache
do
namespace
:clear
do
namespace
:clear
do
REDIS_CLEAR_BATCH_SIZE
=
1000
# There seems to be no speedup when pushing beyond 1,000
REDIS_CLEAR_BATCH_SIZE
=
1000
# There seems to be no speedup when pushing beyond 1,000
...
...
lib/tasks/ci/cleanup.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:ci
do
namespace
:ci
do
namespace
:cleanup
do
namespace
:cleanup
do
desc
"GitLab | CI | Clean running builds"
desc
"GitLab | CI | Clean running builds"
...
...
lib/tasks/cleanup.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:cleanup
do
namespace
:cleanup
do
desc
"GitLab | Cleanup | Delete moved repositories"
desc
"GitLab | Cleanup | Delete moved repositories"
...
...
lib/tasks/config_lint.rake
View file @
26141c2a
# frozen_string_literal: true
module
ConfigLint
module
ConfigLint
def
self
.
run
(
files
)
def
self
.
run
(
files
)
failures
=
files
.
reject
do
|
file
|
failures
=
files
.
reject
do
|
file
|
...
...
lib/tasks/db_obsolete_ignored_columns.rake
View file @
26141c2a
# frozen_string_literal: true
desc
'Show a list of obsolete `ignored_columns`'
desc
'Show a list of obsolete `ignored_columns`'
task
'db:obsolete_ignored_columns'
=>
:environment
do
task
'db:obsolete_ignored_columns'
=>
:environment
do
list
=
Gitlab
::
Database
::
ObsoleteIgnoredColumns
.
new
.
execute
list
=
Gitlab
::
Database
::
ObsoleteIgnoredColumns
.
new
.
execute
...
...
lib/tasks/dev.rake
View file @
26141c2a
# frozen_string_literal: true
task
dev:
[
"dev:setup"
]
task
dev:
[
"dev:setup"
]
namespace
:dev
do
namespace
:dev
do
...
...
lib/tasks/downtime_check.rake
View file @
26141c2a
# frozen_string_literal: true
desc
'Checks if migrations in a branch require downtime'
desc
'Checks if migrations in a branch require downtime'
task
downtime_check: :environment
do
task
downtime_check: :environment
do
repo
=
if
defined?
(
Gitlab
::
License
)
repo
=
if
defined?
(
Gitlab
::
License
)
...
...
lib/tasks/eslint.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
desc
"GitLab | Run ESLint"
desc
"GitLab | Run ESLint"
task
eslint:
[
'yarn:check'
]
do
task
eslint:
[
'yarn:check'
]
do
...
...
lib/tasks/file_hooks.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:file_hooks
do
namespace
:file_hooks
do
desc
'Validate existing file hooks'
desc
'Validate existing file hooks'
task
validate: :environment
do
task
validate: :environment
do
...
...
lib/tasks/frontend.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
namespace
:frontend
do
namespace
:frontend
do
desc
'GitLab | Frontend | Generate fixtures for JavaScript tests'
desc
'GitLab | Frontend | Generate fixtures for JavaScript tests'
...
...
lib/tasks/gemojione.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gemojione
do
namespace
:gemojione
do
desc
'Generates Emoji SHA256 digests'
desc
'Generates Emoji SHA256 digests'
...
...
lib/tasks/gitlab/artifacts/check.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:artifacts
do
namespace
:artifacts
do
desc
'GitLab | Artifacts | Check integrity of uploaded job artifacts'
desc
'GitLab | Artifacts | Check integrity of uploaded job artifacts'
...
...
lib/tasks/gitlab/artifacts/migrate.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
require
'resolv-replace'
require
'resolv-replace'
...
...
lib/tasks/gitlab/backup.rake
View file @
26141c2a
# frozen_string_literal: true
require
'active_record/fixtures'
require
'active_record/fixtures'
namespace
:gitlab
do
namespace
:gitlab
do
...
...
lib/tasks/gitlab/bulk_add_permission.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:import
do
namespace
:import
do
desc
"GitLab | Import | Add all users to all projects (admin users are added as maintainers)"
desc
"GitLab | Import | Add all users to all projects (admin users are added as maintainers)"
...
...
lib/tasks/gitlab/check.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
'GitLab | Check the configuration of GitLab and its environment'
desc
'GitLab | Check the configuration of GitLab and its environment'
task
check: :gitlab_environment
do
task
check: :gitlab_environment
do
...
...
lib/tasks/gitlab/container_registry.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:container_registry
do
namespace
:container_registry
do
desc
"GitLab | Container Registry | Configure"
desc
"GitLab | Container Registry | Configure"
...
...
lib/tasks/gitlab/db.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:db
do
namespace
:db
do
desc
'GitLab | DB | Manually insert schema migration version'
desc
'GitLab | DB | Manually insert schema migration version'
...
...
lib/tasks/gitlab/doctor/secrets.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:doctor
do
namespace
:doctor
do
desc
"GitLab | Check if the database encrypted values can be decrypted using current secrets"
desc
"GitLab | Check if the database encrypted values can be decrypted using current secrets"
...
...
lib/tasks/gitlab/exclusive_lease.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:exclusive_lease
do
namespace
:exclusive_lease
do
desc
'GitLab | Exclusive Lease | Clear existing exclusive leases for specified scope (default: *)'
desc
'GitLab | Exclusive Lease | Clear existing exclusive leases for specified scope (default: *)'
...
...
lib/tasks/gitlab/external_diffs.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:external_diffs
do
namespace
:external_diffs
do
desc
"Override external diffs in file storage to be in object storage instead. This does not change the actual location of the data"
desc
"Override external diffs in file storage to be in object storage instead. This does not change the actual location of the data"
...
...
lib/tasks/gitlab/features.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:features
do
namespace
:features
do
desc
'GitLab | Features | Enable direct Git access via Rugged for NFS'
desc
'GitLab | Features | Enable direct Git access via Rugged for NFS'
...
...
lib/tasks/gitlab/generate_sample_prometheus_data.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GitLab | Generate Sample Prometheus Data"
desc
"GitLab | Generate Sample Prometheus Data"
task
:generate_sample_prometheus_data
,
[
:environment_id
]
=>
:gitlab_environment
do
|
_
,
args
|
task
:generate_sample_prometheus_data
,
[
:environment_id
]
=>
:gitlab_environment
do
|
_
,
args
|
...
...
lib/tasks/gitlab/git.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:git
do
namespace
:git
do
desc
'GitLab | Git | Check all repos integrity'
desc
'GitLab | Git | Check all repos integrity'
...
...
lib/tasks/gitlab/gitaly.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:gitaly
do
namespace
:gitaly
do
desc
'GitLab | Gitaly | Install or upgrade gitaly'
desc
'GitLab | Gitaly | Install or upgrade gitaly'
...
...
lib/tasks/gitlab/helpers.rake
View file @
26141c2a
# frozen_string_literal: true
# Prevent StateMachine warnings from outputting during a cron task
# Prevent StateMachine warnings from outputting during a cron task
StateMachines
::
Machine
.
ignore_method_conflicts
=
true
if
ENV
[
'CRON'
]
StateMachines
::
Machine
.
ignore_method_conflicts
=
true
if
ENV
[
'CRON'
]
...
...
lib/tasks/gitlab/import.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:import
do
namespace
:import
do
# How to use:
# How to use:
...
...
lib/tasks/gitlab/import_export.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:import_export
do
namespace
:import_export
do
desc
'GitLab | Import/Export | Show Import/Export version'
desc
'GitLab | Import/Export | Show Import/Export version'
...
...
lib/tasks/gitlab/info.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:env
do
namespace
:env
do
desc
'GitLab | Env | Show information about GitLab and its environment'
desc
'GitLab | Env | Show information about GitLab and its environment'
...
...
lib/tasks/gitlab/ldap.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:ldap
do
namespace
:ldap
do
desc
'GitLab | LDAP | Rename provider'
desc
'GitLab | LDAP | Rename provider'
...
...
lib/tasks/gitlab/lfs/check.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:lfs
do
namespace
:lfs
do
desc
'GitLab | LFS | Check integrity of uploaded LFS objects'
desc
'GitLab | LFS | Check integrity of uploaded LFS objects'
...
...
lib/tasks/gitlab/lfs/migrate.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
desc
"GitLab | LFS | Migrate LFS objects to remote storage"
desc
"GitLab | LFS | Migrate LFS objects to remote storage"
...
...
lib/tasks/gitlab/list_repos.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
task
list_repos: :environment
do
task
list_repos: :environment
do
scope
=
Project
scope
=
Project
...
...
lib/tasks/gitlab/packages/events.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
desc
"GitLab | Packages | Events | Generate hll counter events file for packages"
desc
"GitLab | Packages | Events | Generate hll counter events file for packages"
...
...
lib/tasks/gitlab/packages/migrate.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
desc
"GitLab | Packages | Migrate packages files to remote storage"
desc
"GitLab | Packages | Migrate packages files to remote storage"
...
...
lib/tasks/gitlab/pages.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
namespace
:gitlab
do
namespace
:gitlab
do
...
...
lib/tasks/gitlab/praefect.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:praefect
do
namespace
:praefect
do
def
int?
(
string
)
def
int?
(
string
)
...
...
lib/tasks/gitlab/seed.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:seed
do
namespace
:seed
do
desc
"GitLab | Seed | Seeds issues"
desc
"GitLab | Seed | Seeds issues"
...
...
lib/tasks/gitlab/setup.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GitLab | Setup production application"
desc
"GitLab | Setup production application"
task
setup: :gitlab_environment
do
task
setup: :gitlab_environment
do
...
...
lib/tasks/gitlab/shell.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:shell
do
namespace
:shell
do
desc
"GitLab | Shell | Install or upgrade gitlab-shell"
desc
"GitLab | Shell | Install or upgrade gitlab-shell"
...
...
lib/tasks/gitlab/storage.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:storage
do
namespace
:storage
do
desc
'GitLab | Storage | Migrate existing projects to Hashed Storage'
desc
'GitLab | Storage | Migrate existing projects to Hashed Storage'
...
...
lib/tasks/gitlab/tcp_check.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GitLab | Check TCP connectivity to a specific host and port"
desc
"GitLab | Check TCP connectivity to a specific host and port"
task
:tcp_check
,
[
:host
,
:port
]
=>
:environment
do
|
_t
,
args
|
task
:tcp_check
,
[
:host
,
:port
]
=>
:environment
do
|
_t
,
args
|
...
...
lib/tasks/gitlab/test.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GitLab | Run all tests"
desc
"GitLab | Run all tests"
task
:test
do
task
:test
do
...
...
lib/tasks/gitlab/two_factor.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:two_factor
do
namespace
:two_factor
do
desc
"GitLab | 2FA | Disable Two-factor authentication (2FA) for all users"
desc
"GitLab | 2FA | Disable Two-factor authentication (2FA) for all users"
...
...
lib/tasks/gitlab/update_templates.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GitLab | Update templates"
desc
"GitLab | Update templates"
task
:update_templates
do
task
:update_templates
do
...
...
lib/tasks/gitlab/uploads/check.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:uploads
do
namespace
:uploads
do
desc
'GitLab | Uploads | Check integrity of uploaded files'
desc
'GitLab | Uploads | Check integrity of uploaded files'
...
...
lib/tasks/gitlab/uploads/migrate.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:uploads
do
namespace
:uploads
do
namespace
:migrate
do
namespace
:migrate
do
...
...
lib/tasks/gitlab/uploads/sanitize.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:uploads
do
namespace
:uploads
do
namespace
:sanitize
do
namespace
:sanitize
do
...
...
lib/tasks/gitlab/usage_data.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:usage_data
do
namespace
:usage_data
do
desc
'GitLab | UsageData | Generate raw SQLs for usage ping in YAML'
desc
'GitLab | UsageData | Generate raw SQLs for usage ping in YAML'
...
...
lib/tasks/gitlab/user_management.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:user_management
do
namespace
:user_management
do
desc
"GitLab | User management | Update all users of a group with personal project limit to 0 and can_create_group to false"
desc
"GitLab | User management | Update all users of a group with personal project limit to 0 and can_create_group to false"
...
...
lib/tasks/gitlab/web_hook.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:web_hook
do
namespace
:web_hook
do
desc
"GitLab | Webhook | Adds a webhook to the projects"
desc
"GitLab | Webhook | Adds a webhook to the projects"
...
...
lib/tasks/gitlab/workhorse.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:workhorse
do
namespace
:workhorse
do
desc
"GitLab | Workhorse | Install or upgrade gitlab-workhorse"
desc
"GitLab | Workhorse | Install or upgrade gitlab-workhorse"
...
...
lib/tasks/gitlab/x509/update.rake
View file @
26141c2a
# frozen_string_literal: true
require
'logger'
require
'logger'
desc
"GitLab | X509 | Update signatures when certificate store has changed"
desc
"GitLab | X509 | Update signatures when certificate store has changed"
...
...
lib/tasks/gitlab_danger.rake
View file @
26141c2a
# frozen_string_literal: true
desc
'Run local Danger rules'
desc
'Run local Danger rules'
task
:danger_local
do
task
:danger_local
do
require_relative
'../../tooling/gitlab_danger'
require_relative
'../../tooling/gitlab_danger'
...
...
lib/tasks/grape.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:grape
do
namespace
:grape
do
desc
'Print compiled grape routes'
desc
'Print compiled grape routes'
task
routes: :environment
do
task
routes: :environment
do
...
...
lib/tasks/haml-lint.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
require
'haml_lint/rake_task'
require
'haml_lint/rake_task'
require
Rails
.
root
.
join
(
'haml_lint/inline_javascript'
)
require
Rails
.
root
.
join
(
'haml_lint/inline_javascript'
)
...
...
lib/tasks/import.rake
View file @
26141c2a
# frozen_string_literal: true
require
'benchmark'
require
'benchmark'
require
'rainbow/ext/string'
require
'rainbow/ext/string'
...
...
lib/tasks/karma.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
namespace
:karma
do
namespace
:karma
do
# alias exists for legacy reasons
# alias exists for legacy reasons
...
...
lib/tasks/lint.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
namespace
:lint
do
namespace
:lint
do
task
:static_verification_env
do
task
:static_verification_env
do
...
...
lib/tasks/migrate/composite_primary_keys.rake
View file @
26141c2a
# frozen_string_literal: true
namespace
:gitlab
do
namespace
:gitlab
do
namespace
:db
do
namespace
:db
do
desc
'GitLab | DB | Adds primary keys to tables that only have composite unique keys'
desc
'GitLab | DB | Adds primary keys to tables that only have composite unique keys'
...
...
lib/tasks/migrate/migrate_iids.rake
View file @
26141c2a
# frozen_string_literal: true
desc
"GitLab | Build internal ids for issues and merge requests"
desc
"GitLab | Build internal ids for issues and merge requests"
task
migrate_iids: :environment
do
task
migrate_iids: :environment
do
puts
'Issues'
.
color
(
:yellow
)
puts
'Issues'
.
color
(
:yellow
)
...
...
lib/tasks/migrate/setup_postgresql.rake
View file @
26141c2a
# frozen_string_literal: true
desc
'GitLab | Generate PostgreSQL Password Hash'
desc
'GitLab | Generate PostgreSQL Password Hash'
task
:postgresql_md5_hash
do
task
:postgresql_md5_hash
do
require
'digest'
require
'digest'
...
...
lib/tasks/pngquant.rake
View file @
26141c2a
# frozen_string_literal: true
return
if
Rails
.
env
.
production?
return
if
Rails
.
env
.
production?
require
'png_quantizator'
require
'png_quantizator'
...
...
lib/tasks/rubocop.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
require
'rubocop/rake_task'
require
'rubocop/rake_task'
...
...
lib/tasks/scss-lint.rake
View file @
26141c2a
# frozen_string_literal: true
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
require
'scss_lint/rake_task'
require
'scss_lint/rake_task'
...
...
lib/tasks/setup.rake
View file @
26141c2a
# frozen_string_literal: true
desc
"GitLab | Setup gitlab db"
desc
"GitLab | Setup gitlab db"
task
:setup
do
task
:setup
do
Rake
::
Task
[
"gitlab:setup"
].
invoke
Rake
::
Task
[
"gitlab:setup"
].
invoke
...
...
lib/tasks/test.rake
View file @
26141c2a
# frozen_string_literal: true
Rake
::
Task
[
"test"
].
clear
Rake
::
Task
[
"test"
].
clear
desc
"GitLab | Run all tests"
desc
"GitLab | Run all tests"
...
...
lib/tasks/tokens.rake
View file @
26141c2a
# frozen_string_literal: true
require_relative
'../../app/models/concerns/token_authenticatable.rb'
require_relative
'../../app/models/concerns/token_authenticatable.rb'
require_relative
'../../app/models/concerns/token_authenticatable_strategies/base.rb'
require_relative
'../../app/models/concerns/token_authenticatable_strategies/base.rb'
require_relative
'../../app/models/concerns/token_authenticatable_strategies/insecure.rb'
require_relative
'../../app/models/concerns/token_authenticatable_strategies/insecure.rb'
...
...
spec/lib/backup/files_spec.rb
View file @
26141c2a
...
@@ -21,10 +21,6 @@ RSpec.describe Backup::Files do
...
@@ -21,10 +21,6 @@ RSpec.describe Backup::Files do
allow
(
File
).
to
receive
(
:realpath
).
with
(
"/var/gitlab-pages"
).
and_return
(
"/var/gitlab-pages"
)
allow
(
File
).
to
receive
(
:realpath
).
with
(
"/var/gitlab-pages"
).
and_return
(
"/var/gitlab-pages"
)
allow
(
File
).
to
receive
(
:realpath
).
with
(
"/var/gitlab-pages/.."
).
and_return
(
"/var"
)
allow
(
File
).
to
receive
(
:realpath
).
with
(
"/var/gitlab-pages/.."
).
and_return
(
"/var"
)
allow_any_instance_of
(
String
).
to
receive
(
:color
)
do
|
string
,
_color
|
string
end
allow_any_instance_of
(
described_class
).
to
receive
(
:progress
).
and_return
(
progress
)
allow_any_instance_of
(
described_class
).
to
receive
(
:progress
).
and_return
(
progress
)
end
end
...
...
spec/tasks/gitlab/git_rake_spec.rb
View file @
26141c2a
...
@@ -9,8 +9,6 @@ RSpec.describe 'gitlab:git rake tasks' do
...
@@ -9,8 +9,6 @@ RSpec.describe 'gitlab:git rake tasks' do
before
do
before
do
Rake
.
application
.
rake_require
'tasks/gitlab/git'
Rake
.
application
.
rake_require
'tasks/gitlab/git'
allow_any_instance_of
(
String
).
to
receive
(
:color
)
{
|
string
,
_color
|
string
}
stub_warn_user_is_not_gitlab
stub_warn_user_is_not_gitlab
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment