vendor/bundle/ruby/2.1.0/gems/gemnasium-gitlab-service-0.2.3/lib/gemnasium/gitlab_service/client.rb
# Updates or creates the dependency files.
#
# @params project [String] Identifier of the project
#         files [Hash] files to upload; a file respond to :path, :sha and :content
Updates or creates the dependency files.
Updates or creates the dependency files .
def upload_files(project, commit_sha, files)
        payload = files.map do |f|
          { "path" => f.path, "sha" => f.sha, "content" => Base64.encode64(f.content) }
        end
        extra_headers = { 'X-Gms-Revision' => commit_sha }
        request(:post, "projects/#{ project }/dependency_files", payload, extra_headers)
      end
def upload_files ( project , commit_sha , files ) payload = files . map do | f | { "path" => f . path , "sha" => f . sha , "content" => Base64 . encode64 ( f . content ) } end extra_headers = { 'X-Gms-Revision' => commit_sha } request ( :post , "projects/#{ project }/dependency_files" , payload , extra_headers ) end
Updates or creates the dependency files.
Updates or creates the dependency files .
project
commit_sha
files
params
project [String] Identifier of the project files [Hash] files to upload; a file respond to :path, :sha and :content
project [ String ] Identifier of the project files [ Hash ] files to upload ; a file respond to : path : sha and : content