Method: Cnvrg::Datafiles#put_commit
- Defined in:
- lib/cnvrg/datafiles.rb
#put_commit(commit_sha1) ⇒ Object
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/cnvrg/datafiles.rb', line 74 def put_commit(commit_sha1) response = Cnvrg::API.request("#{@base_resource}/commit/latest", 'PUT', {commit_sha1: commit_sha1}) if response.present? msg = response['result'] else msg = "Cant save changes in the dataset" end Cnvrg::Result.new(Cnvrg::CLI.is_response_success(response, false), msg) end |