C
crossanpdx
Below is my script which create me a html file called pickle.html and then when ran again, it checks if exists and if so appends to the file and creates new one.
I need to tell the script where I want to the html file to go to.
I run this from the working directory and in the same directory is a folder called 'logs' so I would like all the pickle.html files to go to logs.
Suggestions? and Thank you much in advance!
require 'date'
file, new_file = 'pickle.html', DateTime.now.strftime('%s')
if File.exists?('file')
File.rename('file', "pickle_#{new_file}.html")
end
command = %Q(cucumber --format 'Timestamped::HtmlFormatter' --out #{file})
exec command
I need to tell the script where I want to the html file to go to.
I run this from the working directory and in the same directory is a folder called 'logs' so I would like all the pickle.html files to go to logs.
Suggestions? and Thank you much in advance!
require 'date'
file, new_file = 'pickle.html', DateTime.now.strftime('%s')
if File.exists?('file')
File.rename('file', "pickle_#{new_file}.html")
end
command = %Q(cucumber --format 'Timestamped::HtmlFormatter' --out #{file})
exec command