lib/console_runner.rb in console_runner-0.1.21 vs lib/console_runner.rb in console_runner-0.1.22
- old
+ new
@@ -7,11 +7,12 @@
SEPARATOR = '==================================='.freeze
begin
start_time = Time.now
success_status = true
puts "#{SEPARATOR}
-Start Time: #{start_time}".blue
+Start Time: #{start_time}
+ #{SEPARATOR}".blue
file_from_arg = ARGV.shift
raise ConsoleRunnerError, 'Specify file to be executed' unless file_from_arg
file_path = File.realpath file_from_arg
file_parser = FileParser.new(file_path)
@@ -64,11 +65,12 @@
success_status = false
raise e
ensure
finish_time = Time.now
status = success_status ? 'Success'.green : 'Error'.red
+ puts "\n#{SEPARATOR}".blue
puts 'Execution status: '.blue + status
- puts "#{SEPARATOR}
-Finish Time: #{finish_time} (Duration: #{((finish_time - start_time) / 60).round(2) } minutes)
-".blue
+ puts "Finish Time: #{finish_time} (Duration: #{((finish_time - start_time) / 60).round(2) } minutes)
+#{SEPARATOR}
+ ".blue
end
end
\ No newline at end of file