Method: Cnvrg::Datafiles#put_commit
- Defined in:
 - lib/cnvrg/datafiles.rb
 
#put_commit(commit_sha1) ⇒ Object
      105 106 107 108 109 110 111 112 113 114  | 
    
      # File 'lib/cnvrg/datafiles.rb', line 105 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  |