Skip to content

Commit 2e498af

Browse files
authored
Linting
1 parent d6b9397 commit 2e498af

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

logic.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@
189189

190190
puts colorize_lightblue('Building images (might take a while)... (logging to logfiles/imagebuild.log)')
191191
if run_command("#{ENV['DC_CMD']} build #{options['nopull'] ? '' : '--pull'} > logfiles/imagebuild.log 2>&1") != 0
192-
puts colorize_red('Something went wrong when building the images. Check the log file for the full output, here are the last 10 lines:')
192+
puts colorize_red('Something went wrong when building the images, check the log file. Here are the last 10 lines:')
193193
lines = File.readlines("#{root_loc}/logfiles/imagebuild.log")
194-
last_10 = lines.last(10)
195-
last_10.each { |line| puts line }
194+
last_ten = lines.last(10)
195+
last_ten.each { |line| puts line }
196196
exit
197197
end
198198
puts colorize_lightblue('...done')
@@ -206,10 +206,10 @@
206206
# Let's force a recreation of the containers here so we know they're using up-to-date images
207207
puts colorize_lightblue('Recreating containers... (logging to logfiles/containercreate.log)')
208208
if run_command("#{ENV['DC_CMD']} up --remove-orphans --force-recreate --no-start > logfiles/containercreate.log 2>&1") != 0
209-
puts colorize_red('Something went wrong when creating the containers. Check the log file for the full output, here are the last 10 lines:')
209+
puts colorize_red('Something went wrong when creating the containers, check the log file. Here are the last 10 lines:')
210210
lines = File.readlines("#{root_loc}/logfiles/containercreate.log")
211-
last_10 = lines.last(10)
212-
last_10.each { |line| puts line }
211+
last_ten = lines.last(10)
212+
last_ten.each { |line| puts line }
213213
exit
214214
end
215215
puts colorize_lightblue('...done')
@@ -290,10 +290,10 @@
290290
puts colorize_lightblue('Starting inexpensive services... (logging to logfiles/containerstart.log)')
291291
up = run_command("#{ENV['DC_CMD']} up --no-deps --remove-orphans -d #{services_to_start.join(' ')}")
292292
if up != 0
293-
puts colorize_red('Something went wrong when starting the containers. Check the log file for the full output, here are the last 10 lines:')
293+
puts colorize_red('Something went wrong when starting the containers, check the log file. Here are the last 10 lines:')
294294
lines = File.readlines("#{root_loc}/logfiles/containerstart.log")
295-
last_10 = lines.last(10)
296-
last_10.each { |line| puts line }
295+
last_ten = lines.last(10)
296+
last_ten.each { |line| puts line }
297297
exit
298298
end
299299
puts colorize_lightblue('...done')

0 commit comments

Comments
 (0)