jira_attachment_uploader-single.rb
def log_file_creation()
	current_path = File.dirname(File.realpath(__FILE__))
	$csv_path = "#{current_path}/Attachments.csv"
	if !File.directory?("#{current_path}/logs")
		FileUtils.mkdir_p "#{current_path}/logs"
	end
	$log_path = "#{current_path}/logs/jira-attachment-upload.txt"
	$log = Logger.new("#{current_path}/logs/jira-attachment-upload.txt", 'daily')
end
#Creates log if it doesn't exists
Creates log if it doesn't exists
Creates log if it doesn ' t exists
def log_file_creation()
	current_path = File.dirname(File.realpath(__FILE__))
	$csv_path = "#{current_path}/Attachments.csv"
	if !File.directory?("#{current_path}/logs")
		FileUtils.mkdir_p "#{current_path}/logs"
	end
	$log_path = "#{current_path}/logs/jira-attachment-upload.txt"
	$log = Logger.new("#{current_path}/logs/jira-attachment-upload.txt", 'daily')
end
def log_file_creation ( ) current_path = File . dirname ( File . realpath ( __FILE__ ) ) $csv_path = "#{current_path}/Attachments.csv" if ! File . directory? ( "#{current_path}/logs" ) FileUtils . mkdir_p "#{current_path}/logs" end $log_path = "#{current_path}/logs/jira-attachment-upload.txt" $log = Logger . new ( "#{current_path}/logs/jira-attachment-upload.txt" , 'daily' ) end
Creates log if it doesn't exists
Creates log if it doesn ' t exists