Method: Cnvrg::Project#update_idx_with_commit!
- Defined in:
- lib/cnvrg/project.rb
#update_idx_with_commit!(commit) ⇒ Object
230 231 232 233 234 235 236 |
# File 'lib/cnvrg/project.rb', line 230 def update_idx_with_commit!(commit) idx_hash = YAML.load_file("#{self.local_path}/.cnvrg/idx.yml") idx_hash[:commit] = commit File.open("#{self.local_path}/.cnvrg/idx.yml", 'w') { |f| f.write idx_hash.to_yaml } return true end |