Searched refs:get_file (Results 1 - 10 of 10) sorted by relevance

/ontohub/spec/lib/repository/
H A Dfiles_spec.rb23 it { expect(repository.get_file(filepath).name).to eq(filepath.split('/')[-1]) }
24 it { expect(repository.get_file(filepath).content).to eq(content) }
25 it { expect(repository.get_file(filepath).mime_type).to eq(Mime::Type.lookup('text/plain')) }
50 it { expect(repository.get_file(filepath).content).to eq(content2) }
/ontohub/app/fake_records/
H A Dhistory_entries_page.rb25 @current_file = repository.get_file(path, oid) if path && !repository.dir?(path)
H A Drepository_file.rb185 @file = repository.git.get_file!(opts[:path] || '/', commit_id[:oid])
/ontohub/app/models/ontology_version/
H A Dfiles.rb56 repository.get_file(self.path, commit_oid).content.encoding_utf8
/ontohub/app/models/
H A Dontology_version.rb75 ontology.repository.get_file(path, commit_oid)
H A Dontology.rb177 repository.get_file(path)
/ontohub/lib/
H A Dgit_repository.rb70 def get_file(path, commit_oid = nil) method in class:GitRepository
72 get_file!(path, commit_oid)
78 def get_file!(path, commit_oid = nil)
/ontohub/app/models/repository/
H A Dgit.rb6 delegate :commit_id, :dir?, :empty?, :get_file, :has_changed?,
/ontohub/spec/models/repository/
H A Dsave_and_delete_file_spec.rb32 expect(repository.git.get_file(target_path).content).to eq(content)
/ontohub/app/controllers/
H A Dfiles_controller.rb89 render text: repository.get_file(path, oid).content,

Completed in 23 milliseconds