Searched refs:file (Results 1 - 25 of 34) sorted by relevance

12

/ontohub/spec/support/fixtures_generation/
H A Dontology_generator.rb7 def perform(file)
9 call_hets(file, 'dg', hets_api_options: hets_api_options)
13 all_files_beneath('spec/fixtures/ontologies').select do |file|
14 !file.end_with?('.xml')
H A Dprovers_generator.rb7 def perform(file)
9 call_hets(file, 'provers', query_string: query_string)
13 all_files_beneath('spec/fixtures/ontologies').select do |file|
14 !file.end_with?('.xml')
H A Dbase_generator.rb20 on_outdated_cassettes do |file|
21 perform(file)
26 files.select do |file|
27 cassette = recorded_file(file)
53 globbed_files.select { |file| !File.directory?(file) }
85 def absolute_filepath(file)
86 Rails.root.join(file)
89 def cassette_file(file)
91 cassette_filepath = file
[all...]
H A Dproof_generator.rb7 def perform(file)
10 call_hets(file, 'prove', method: :post, header: header, data: data)
H A Dpipeline_generator.rb11 attr_reader :file, :subdir
13 def initialize(file = nil, subdir = nil)
15 @file = file
24 cassette ||= cassette_path_in_fixtures(file)
61 [file]
H A Ddirect_hets_generator.rb16 def call_hets(file, command,
22 puts "Calling hets/#{command} on #{file.inspect}"
23 escaped_iri = Rack::Utils.escape_path("file://#{absolute_filepath(file)}")
26 hets_iri << "?#{input_type(file)}"
29 FileUtils.rm_f(recorded_file(file))
30 VCR.use_cassette(cassette_path_in_fixtures(file)) do
48 def input_type(file)
49 extension = File.extname(file)
H A Dprover_output_generator.rb9 def perform(file)
15 response = call_hets(file, 'prove',
33 target_file(node, prover) do |file|
34 file.write(response_hash.first['goals'].first['prover_output'])
/ontohub/app/models/key/
H A Dfingerprint.rb15 Tempfile.open('ssh_key_file') do |file|
16 file.puts key
17 file.rewind
18 output = Subprocess.run 'ssh-keygen', '-lf', file.path
25 output = Subprocess.run 'ssh-keygen', '-l', '-E', 'md5', '-f', file.path
/ontohub/features/step_definitions/
H A Drepository_file_browser_steps.rb1 When(/^I visit the file browser of the ontology's repository$/i) do
5 Then(/^I should see the ontology's file$/i) do
6 file_cell_selector = 'table.file-table td.name'
13 Then(/^I should see the ontlogy next to the ontology's file$/i) do
14 ontology_cell_selector = 'table.file-table td.ontology ul.ontology-list'
21 Then(/^I should see no other ontologies next to the ontology's file$/i) do
22 ontology_cell_selector = 'table.file-table td.ontology ul.ontology-list'
27 Then(/^I should see the ontlogy and its children next to the ontology's file$/i) do
28 ontology_cell_selector = 'table.file-table td.ontology ul.ontology-list'
H A Drepository_edit_file_steps.rb18 And there is an ontology file
43 When(/^I visit the file view of the ontology$/i) do
52 Then(/^I should see all the file's ontologies$/i) do
53 # The file defines the DistributedOntolgy and its children.
/ontohub/lib/git_repository/
H A Dfiles.rb26 if file?
35 when :file
44 when :file
51 def file?
52 type == :file
63 :file
H A Dget_folder_contents.rb29 when :file
48 tree.each_blob do |file|
49 filepath = [path, file[:name]].select(&:present?).compact.join('/')
/ontohub/lib/
H A Duri_fetcher.rb27 File.open(write_file.to_s, 'w') do |file|
28 file.flock(File::LOCK_EX)
30 file.write chunk
H A Diri_url_builder.rb20 locid: file,
31 def file method in class:IRIUrlBuilder.Builder
H A Dauthorized_keys_manager.rb60 File.open(authorized_keys_file, mode) do |file|
61 file.flock(File::LOCK_EX)
62 yield file
/ontohub/registry/purl/
H A Dsendbatchpurls.pl14 # Version 2.0 (the "License"); you may not use this file except in compliance
45 file => 'lwpcookies.txt',
51 print STDERR "no old cookie jar file, so asking for new authorization\n"
63 print STDERR "save cookie jar file\n";
67 print STDERR "load cookie jar from the file\n";
72 # Open log file.
73 open LOG, ">purl_creations.log" or die "Couldn't open log file: $!\n";
76 # Make a new request for each file in the directory.
78 foreach $file (@files) {
80 # Get content from file
[all...]
H A Dmodifybatchpurls.pl15 # Version 2.0 (the "License"); you may not use this file except in compliance
50 file => $cookiefile,
56 print STDERR "no old cookie jar file, so asking for new authorization\n"
68 print STDERR "save cookie jar file\n";
72 print STDERR "load cookie jar from the file\n";
77 # Open log file.
78 open LOG, ">purl_modifications.log" or die "Couldn't open log file: $!\n";
81 # Get the contents of each file in the directory.
83 foreach my $file (@files) {
85 # Get content from file
[all...]
/ontohub/spec/models/
H A Dlicense_model_spec.rb27 %w(http://example.com/ https://example.com/ file://path/to/file).
H A Dcommit_spec.rb17 let(:file) { 'clif/Px.clif' }
20 stub_hets_for(file)
25 repository.save_file(ontology_file(file),
26 File.basename(file), 'add file', pusher).commit_oid
66 repository.save_file(ontology_file(file),
67 File.basename(file), 'add file', pusher).commit_oid
/ontohub/app/fake_records/
H A Dcombination.rb67 file = RepositoryFile.new \
84 file = Tempfile.new(file_name)
85 file.write(dol_representation_erb.result(binding))
86 file.rewind
87 file
H A Drepository_file.rb5 record.errors[:target_directory] = "Error! This path points to or through a file."
10 # basic repository file usage
11 attr_reader :repository, :file, :user
14 :oid, :file?, :dir?, :type, to: :file
42 if entry.path.start_with?(opts[:path]) && entry.file?
88 @ontologies ||= if file?
97 files_sorted = file.content.sort_by do |git_file|
105 file.content
185 @file
[all...]
/ontohub/spec/lib/repository/
H A Ddirectories_spec.rb35 it 'read the right number of contents in the root folder after adding the first file' do
39 it 'read the right contents in the root folder after adding the first file' do
48 it 'read the right number of contents in the subfolder after adding the first file' do
52 it 'read the right contents in the subfolder after adding the first file' do
56 type: :file,
62 it 'read the right number of contents in the root folder after adding the second file' do
66 it 'read the right contents in the root folder after adding the second file' do
75 it 'read the right number of contents in the subfolder after adding the second file' do
79 it 'read the right contents in the subfolder after adding the second file' do
83 type: :file,
[all...]
/ontohub/app/helpers/
H A Dfiles_helper.rb55 resource.file?
76 can?(:write, repository) && resource.file? && !in_ref_path?
/ontohub/app/models/ontology/
H A Dversions.rb84 def save_file(file, message, user)
85 repository.save_file(file, path, message, user)
/ontohub/spec/lib/repository/import/
H A Dsvn_spec.rb10 file = "#{prefix}#{n}.txt"
11 File.write(file, Time.now.to_s)
12 exec_silently("svn add --force #{file}")
13 exec_silently("svn ci -m 'add #{file}'")
20 let(:bare_url) { "file://#{svn_repo_paths.first}" }

Completed in 36 milliseconds

12