pepper-apis/configure.rb
# path is full path from working directory
path is full path from working directory
path is full path from working directory
def copy_file_from_path(path, output_file_name = nil, silent = false)
  if output_file_name.nil?
    output_file_name = File.basename(path)
  end
  if not silent
    puts "#{path} > #{output_file_name}"
  end
  FileUtils.cp("#{$input_dir}/#{path}", "#{output_file_name}")
end
def copy_file_from_path ( path , output_file_name = nil , silent = false ) if output_file_name . nil? output_file_name = File . basename ( path ) end if not silent puts "#{path} > #{output_file_name}" end FileUtils . cp ( "#{$input_dir}/#{path}" , "#{output_file_name}" ) end
path is full path from working directory
path is full path from working directory
path
output_file_name
silent