lib/container_ship/command/modules/ecs.rb in container_ship-0.1.0 vs lib/container_ship/command/modules/ecs.rb in container_ship-0.1.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module ContainerShip
module Command
module Modules
module Ecs
def register(task_definition)
@@ -45,16 +47,17 @@
@aws_ecs_client ||= Aws::ECS::Client.new
end
def do_every_5_seconds
count = 0
- while true
+ loop do
sleep 3
print '.'
exit_status = yield
count += 1
next if exit_status.nil?
return 124 if count > 60
+
return exit_status
end
end
end
end