3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/templatit.rb', line 3
def self.run(system_type)
case system_type
when 'a'
puts "===============generating==============="
current_directory = Dir.pwd
xml_generated = ConfigXML.new(get_tags('config'), get_template('config'))
xml_generated.save(File.join(current_directory + '/res/values', 'config.xml'))
xml_generated = ConfigXML.new(get_tags('strings'), get_template('strings'))
xml_generated.save(File.join(current_directory + '/res/values', 'strings.xml'))
yaml_generated = ConfigXML.new(get_pairs, get_template('build'))
yaml_generated.save(File.join(current_directory + '/', 'build.yaml'))
when 'i'
end
end
|