lib/console_runner.rb in console_runner-0.1.22 vs lib/console_runner.rb in console_runner-0.1.23
- old
+ new
@@ -6,13 +6,11 @@
module ConsoleRunner
SEPARATOR = '==================================='.freeze
begin
start_time = Time.now
success_status = true
- puts "#{SEPARATOR}
-Start Time: #{start_time}
- #{SEPARATOR}".blue
+ puts "#{SEPARATOR}\nStart Time: #{start_time}\n#{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)
@@ -68,9 +66,8 @@
finish_time = Time.now
status = success_status ? 'Success'.green : 'Error'.red
puts "\n#{SEPARATOR}".blue
puts 'Execution status: '.blue + status
puts "Finish Time: #{finish_time} (Duration: #{((finish_time - start_time) / 60).round(2) } minutes)
-#{SEPARATOR}
- ".blue
+#{SEPARATOR}\n".blue
end
end
\ No newline at end of file