Method: ReVIEW::WEBMaker#copy_file_with_param
- Defined in:
- lib/review/webmaker.rb
#copy_file_with_param(name, target_file = nil) ⇒ Object
304 305 306 307 308 309 |
# File 'lib/review/webmaker.rb', line 304 def copy_file_with_param(name, target_file = nil) return if @config[name].nil? || !File.exist?(@config[name]) target_file ||= File.basename(@config[name]) FileUtils.cp(@config[name], File.join(@path, target_file)) end |