Module: FWToolkit::Projectfile
Instance Attribute Summary
Attributes included from ConfigFile
#default_config
Instance Method Summary
collapse
Methods included from ConfigFile
config, configure, load_config!, load_config_hash!, merge_config, method_missing
Instance Method Details
#load!(project_root) ⇒ Object
10
11
12
13
|
# File 'lib/fwtoolkit/projectfile.rb', line 10
def load!(project_root)
load_config! projectfile_for_root(project_root)
merge_config defaults_with_config(@config)
end
|
#load_with_config!(config) ⇒ Object
15
16
17
18
|
# File 'lib/fwtoolkit/projectfile.rb', line 15
def load_with_config!(config)
load_config_hash! config
merge_config defaults_with_config(config)
end
|
#validate_config ⇒ Object
20
21
22
23
24
|
# File 'lib/fwtoolkit/projectfile.rb', line 20
def validate_config
unless @config.has_key?(:project_name) && @config.has_key?(:class_prefix)
raise NameError, "The project name has to be specified on the configuration file"
end
end
|