Skip to content
Snippets Groups Projects
Commit e96fd232 authored by Stan Hu's avatar Stan Hu
Browse files

Remove unnecessary includes of ShellAdapter

Determined by running the script:

```
included = `git grep --name-only ShellAdapter`.chomp.split("\n")
used = `git grep --name-only gitlab_shell`.chomp.split("\n")
included - used
```
parent fa3528ee
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -4,6 +4,8 @@ module Storage
module LegacyNamespace
extend ActiveSupport::Concern
 
include Gitlab::ShellAdapter
def move_dir
proj_with_tags = first_project_with_container_registry_tags
 
Loading
Loading
Loading
Loading
@@ -3,8 +3,6 @@
class ProjectMember < Member
SOURCE_TYPE = 'Project'.freeze
 
include Gitlab::ShellAdapter
belongs_to :project, foreign_key: 'source_id'
 
# Make sure project member points only to project as it source
Loading
Loading
Loading
Loading
@@ -3,7 +3,6 @@
class Namespace < ActiveRecord::Base
include CacheMarkdownField
include Sortable
include Gitlab::ShellAdapter
include Gitlab::VisibilityLevel
include Routable
include AfterCommitQueue
Loading
Loading
# frozen_string_literal: true
 
class ProtectedBranch < ActiveRecord::Base
include Gitlab::ShellAdapter
include ProtectedRef
 
protected_ref_access_levels :merge, :push
Loading
Loading
# frozen_string_literal: true
 
class ProtectedTag < ActiveRecord::Base
include Gitlab::ShellAdapter
include ProtectedRef
 
validates :name, uniqueness: { scope: :project_id }
Loading
Loading
Loading
Loading
@@ -17,7 +17,6 @@ class Repository
#{REF_ENVIRONMENTS}
].freeze
 
include Gitlab::ShellAdapter
include Gitlab::RepositoryCacheAdapter
 
attr_accessor :full_path, :disk_path, :project, :is_wiki
Loading
Loading
Loading
Loading
@@ -5,7 +5,6 @@ class RepositoryUpdateRemoteMirrorWorker
UpdateError = Class.new(StandardError)
 
include ApplicationWorker
include Gitlab::ShellAdapter
 
sidekiq_options retry: 3, dead: false
 
Loading
Loading
class RenameReservedProjectNames < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
include Gitlab::ShellAdapter
 
DOWNTIME = false
 
Loading
Loading
class RenameMoreReservedProjectNames < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
include Gitlab::ShellAdapter
 
DOWNTIME = false
 
Loading
Loading
Loading
Loading
@@ -3,8 +3,6 @@
module Gitlab
module BitbucketServerImport
class Importer
include Gitlab::ShellAdapter
attr_reader :recover_missing_commits
attr_reader :project, :project_key, :repository_slug, :client, :errors, :users
attr_accessor :logger
Loading
Loading
Loading
Loading
@@ -4,7 +4,6 @@ module Gitlab
module ImportExport
class RepoRestorer
include Gitlab::ImportExport::CommandLineUtil
include Gitlab::ShellAdapter
 
def initialize(project:, shared:, path_to_bundle:)
@project = project
Loading
Loading
Loading
Loading
@@ -11,10 +11,6 @@ describe ProjectMember do
it { is_expected.to validate_inclusion_of(:access_level).in_array(Gitlab::Access.values) }
end
 
describe 'modules' do
it { is_expected.to include_module(Gitlab::ShellAdapter) }
end
describe '.access_level_roles' do
it 'returns Gitlab::Access.options' do
expect(described_class.access_level_roles).to eq(Gitlab::Access.options)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment