Method: Cnvrg::Project#get_idx
- Defined in:
- lib/cnvrg/project.rb
#get_idx ⇒ Object
460 461 462 463 464 465 466 467 |
# File 'lib/cnvrg/project.rb', line 460 def get_idx unless File.exists? "#{self.local_path}/.cnvrg/idx.yml" empty_idx = {:commit => nil, :tree => {}} File.open("#{self.local_path}/.cnvrg/idx.yml", 'w') {|f| f.write empty_idx.to_yaml} return empty_idx end YAML.load_file("#{self.local_path}/.cnvrg/idx.yml") end |