Class: Chino::Drivers::PathDriver
Overview
base class for all dependency drivers
Instance Method Summary
collapse
Methods inherited from BaseDriver
#initialize
Instance Method Details
#config ⇒ Object
11
12
13
|
# File 'lib/chino/drivers/path_driver.rb', line 11
def config
@config ||= Config.new(file: File.join(location, 'Chinofile'))
end
|
#exist?(file) ⇒ Boolean
32
33
34
|
# File 'lib/chino/drivers/path_driver.rb', line 32
def exist?(file)
config.bundle_exports.key?(file)
end
|
#inner_deps ⇒ Object
36
37
38
|
# File 'lib/chino/drivers/path_driver.rb', line 36
def inner_deps
[]
end
|
#install! ⇒ Object
23
24
|
# File 'lib/chino/drivers/path_driver.rb', line 23
def install!
end
|
#load_file(file) ⇒ Object
26
27
28
29
30
|
# File 'lib/chino/drivers/path_driver.rb', line 26
def load_file(file)
return {} unless exist? file
{ filename: File.join(location, file) }
end
|
#location ⇒ Object
7
8
9
|
# File 'lib/chino/drivers/path_driver.rb', line 7
def location
@dep[:location]
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/chino/drivers/path_driver.rb', line 15
def name
config.bundle_name
end
|
#version ⇒ Object
19
20
21
|
# File 'lib/chino/drivers/path_driver.rb', line 19
def version
config.bundle_version
end
|