Class: Overapp::Load::RawDir
- Inherits:
-
Base
show all
- Defined in:
- lib/overapp/load/types/raw_dir.rb
Instance Attribute Summary
Attributes inherited from Base
#descriptor
Instance Method Summary
collapse
Methods inherited from Base
#commit_message, #initialize, #load_full
Instance Method Details
4
|
# File 'lib/overapp/load/types/raw_dir.rb', line 4
def dir; Overapp.to_proper_dir(descriptor); end
|
#load(base, ops = {}) ⇒ Object
19
20
21
|
# File 'lib/overapp/load/types/raw_dir.rb', line 19
def load(base,ops={})
base.apply(load_independent,ops)
end
|
#load_independent ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/overapp/load/types/raw_dir.rb', line 5
def load_independent
ops = {}
raise "Bad dir" unless dir.present?
res = Files.new
res.file_class = ops[:file_class] if ops[:file_class]
Overapp.dir_files_full(dir).each do |f|
res.add(f)
end
res
end
|