module Biogem::Path

Public Instance Methods

bin_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
47 def bin_dir
48   'bin'
49 end
bin_name() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
55 def bin_name
56   "#{original_project_name}"
57 end
db_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
43 def db_dir
44   'db'
45 end
exists_dir?(dir) click to toggle source
   # File lib/bio-gem/mod/biogem.rb
10 def exists_dir?(dir)
11   Dir.exists?(path(target_dir,dir))
12 end
ext_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
51 def ext_dir
52   'ext'
53 end
lib_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
19 def lib_dir
20   'lib'
21 end
lib_filename() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
23 def lib_filename
24   "#{project_name}.rb"
25 end
lib_plugin_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
27 def lib_plugin_dir
28   path(lib_dir, project_name)
29 end
lib_plugin_filename() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
31 def lib_plugin_filename
32   short_name + ".rb"
33 end
path(*items) click to toggle source
  # File lib/bio-gem/mod/biogem.rb
6 def path(*items)
7   File.join(*items).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR)
8 end
require_name() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
35 def require_name
36   project_name
37 end
short_name() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
14 def short_name
15   original_project_name.sub(/^bio-/,'')
16 end
test_data_dir() click to toggle source
   # File lib/bio-gem/mod/biogem.rb
39 def test_data_dir
40   'test/data'
41 end