Searched refs:File (Results 1 - 25 of 73) sorted by relevance

123

/ontohub/config/
H A Dboot.rb4 ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
6 require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
H A Denvironment.rb2 require File.expand_path('../application', __FILE__)
/ontohub/script/
H A Drails4 APP_PATH = File.expand_path('../../config/application', __FILE__)
5 require File.expand_path('../../config/boot', __FILE__)
H A Dcucumber3 vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
5 load File.expand_path(vendored_cucumber_bin)
/ontohub/lib/
H A Denvironment_light_with_hets.rb2 rails_root = File.join(File.dirname(__FILE__), '..')
3 require File.join(rails_root, 'lib', 'environment_light.rb')
4 Settings.add_source!(File.join(rails_root, 'config', 'hets.yml'))
H A Diri_url_builder.rb27 path = File.dirname(ontology_version.basepath)
32 File.basename(ontology_version.basepath)
H A Duri_fetcher.rb27 File.open(write_file.to_s, 'w') do |file|
28 file.flock(File::LOCK_EX)
H A Dontology_saver.rb14 file_extension = File.extname(ontology_version_options.filepath)
102 basepath = File.basepath(ontology_version_options.filepath)
103 file_extension = File.extname(ontology_version_options.filepath)
113 basepath = File.basepath(ontology_version_options.filepath)
123 File.basepath(ontology_version_options.pre_saving_filepath)).
129 ontology.basepath = File.basepath(filepath)
130 ontology.file_extension = File.extname(filepath)
141 include?(File.extname(filepath))
151 basepath: File.basepath(ontology_version_options.filepath),
152 file_extension: File
[all...]
/ontohub/lib/extend/
H A Dfile.rb1 class File class
4 File.join(File.dirname(filepath),
5 File.basename(filepath,
6 File.extname(filepath))).sub('./', '')
/ontohub/git/hooks/
H A Dupdate7 require File.expand_path('../../lib/init', File.realdirpath(__FILE__))
H A Dpost-receive7 require File.expand_path('../../lib/init', File.realdirpath(__FILE__))
/ontohub/bin/
H A Dgod10 ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
H A Dsidekiq10 ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
H A Dsidekiqctl10 ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
/ontohub/spec/factories/
H A Drepository_factory.rb9 root_path = File.expand_path('../../../', __FILE__)
10 fixture_path = File.join(root_path, 'spec/fixtures/ontologies/clif/')
12 path = File.join(Ontohub::Application.config.git_root, 'repository')
22 commit_add1 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat1.clif')), filepath1, message)
23 commit_add2 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, filepath2)), filepath2, message)
24 commit_add3 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat2.clif')), filepath1, message)
34 path = File
[all...]
H A Dsvn_repository_factory.rb18 FileUtils.mkdir_p(File.dirname(path_bare))
19 Dir.chdir(File.dirname(path_bare)) do
20 exec_silently.call("svnadmin create #{File.basename(path_bare)}")
/ontohub/spec/lib/
H A Dlogicgraph_parser_spec.rb5 File.open(fixture_file(File.join('ontologies', 'xml', name)))
/ontohub/git/lib/
H A Dinit.rb2 require File.expand_path("../../../lib/environment_light", __FILE__)
3 require File.expand_path("../../../config/initializers/paths", __FILE__)
6 $:.unshift File.dirname(__FILE__)
H A Dontohub_net.rb4 require File.expand_path('../../../lib/uri_fetcher/errors', File.realdirpath(__FILE__))
5 require File.expand_path('../../../lib/uri_fetcher/http_caller', File.realdirpath(__FILE__))
6 require File.expand_path('../../../lib/uri_fetcher', File.realdirpath(__FILE__))
/ontohub/app/helpers/
H A Dmime_type_helper.rb5 extension = File.extname(filename)[1..-1]
/ontohub/
H A DRakefile5 require File.expand_path('../lib/rake/task.rb', __FILE__)
6 require File.expand_path('../config/application', __FILE__)
/ontohub/spec/support/fixtures_generation/
H A Dbase_generator.rb13 YAML.load(File.open('config/hets.yml'))['hets']['server_options']
52 globbed_files = Dir.glob(File.join(dir, '**/*'))
53 globbed_files.select { |file| !File.directory?(file) }
95 File.join('hets-out', subdir)
99 File.join(hets_cassette_dir, cassette_file(file))
104 old_extension = File.extname(file)[1..-1]
106 File.join('spec', 'fixtures', 'vcr', cassette_path_in_fixtures(file))
/ontohub/spec/lib/repository/
H A Dgit_repository_spec.rb11 FileUtils.rmtree(path) if File.exists?(path)
17 expect(File.exists?(path)).to be(false)
25 it { expect(File.exists?(path)).to be(true) }
30 it { expect(File.exists?(path)).to be(false) }
/ontohub/spec/lib/hets/
H A Dszs_parser_spec.rb7 let(:output) { File.read(prover_output_fixture(szs_status, prover)) }
25 let(:output) { File.read(prover_output_fixture(szs_status, prover)) }
/ontohub/spec/models/
H A Doops_spec.rb11 File.read(fixture_file("oops/invalid_request.xml")))
23 File.read(fixture_file("oops/valid_request.xml")))
36 Oops::Response.parse File.read(fixture_file("oops/sunrealm.xml"))

Completed in 40 milliseconds

123