Sha256: 9b35a61b8309f00a9168423c1a038f76af10b0ddf42ecc76a30c83caccc5511a

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    module GitlabClient
      class RepositoryFilesClient < GitlabClient
        attr_reader :file_path, :ref

        def initialize(file_path:, ref:, **kwargs)
          @file_path = file_path
          @ref = ref

          super
        end

        def file_contents
          handle_gitlab_client_exceptions do
            client.file_contents(project, file_path.gsub(%r{^/}, ""), ref)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.28.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.24.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.23.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.22.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.21.1 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.21.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.20.1 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb
gitlab_quality-test_tooling-1.20.0 lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb