def option_copy_file from_path, to_path, file_type, template=false
      if File.exist?(to_path)
        if options[:overwrite]
          remove_file(to_path)
          if template
            template from_path, to_path
          else
            copy_file from_path, to_path
          end
        else
          puts "ERROR: Failed to #{template ? "template" : "copy"} #{file_type || 'file'}. #{to_path} exists. Delete file or use the --overwrite=true option when generating the layout"
        end
      else
        if template
          template from_path, to_path
        else
          copy_file from_path, to_path
        end      
      end 
    end
def option_copy_file from_path, to_path, file_type, template=false
      if File.exist?(to_path)
        if options[:overwrite]
          remove_file(to_path)
          if template
            template from_path, to_path
          else
            copy_file from_path, to_path
          end
        else
          puts "ERROR: Failed to #{template ? "template" : "copy"} #{file_type || 'file'}. #{to_path} exists. Delete file or use the --overwrite=true option when generating the layout"
        end
      else
        if template
          template from_path, to_path
        else
          copy_file from_path, to_path
        end      
      end 
    end
Thor Helpers