Module: TemplateBuilder::App::FileAnalyzer
- Defined in:
- lib/template_builder/app/file_analyzer.rb
Defined Under Namespace
Classes: FileFramework, FileParameter
Class Method Summary
collapse
Class Method Details
.all_frameworks_for(name) ⇒ Object
.all_parameters ⇒ Object
9
10
11
|
# File 'lib/template_builder/app/file_analyzer.rb', line 9
def self.all_parameters
FileParameter.instance.parameters_names
end
|
.load_conf_file(file_name) ⇒ Object
17
18
19
|
# File 'lib/template_builder/app/file_analyzer.rb', line 17
def self.load_conf_file(file_name)
YAML.load_file(File.join(TemplateBuilder::PATH,"/conf/"+file_name.to_s+".yml"))
end
|
.load_framework(opts = {}) ⇒ Object
25
26
27
|
# File 'lib/template_builder/app/file_analyzer.rb', line 25
def self.load_framework(opts = {})
FileFramework.new(opts[:type]).load_framework opts[:name]
end
|
.load_priority(type_name) ⇒ Object
13
14
15
|
# File 'lib/template_builder/app/file_analyzer.rb', line 13
def self.load_priority(type_name)
FileParameter.instance.priority type_name
end
|
.load_standard_parameters ⇒ Object
5
6
7
|
# File 'lib/template_builder/app/file_analyzer.rb', line 5
def self.load_standard_parameters
FileParameter.instance.parameters
end
|