Method: Match::Storage::GitStorage#upload_files

Defined in:
match/lib/match/storage/git_storage.rb

#upload_files(files_to_upload: [], custom_message: nil) ⇒ Object



149
150
151
152
153
154
155
# File 'match/lib/match/storage/git_storage.rb', line 149

def upload_files(files_to_upload: [], custom_message: nil)
  commands = files_to_upload.map do |current_file|
    "git add #{current_file.shellescape}"
  end

  git_push(commands: commands, commit_message: custom_message)
end