lib/lux/docker_tasks.rb in lux-1.1.2 vs lib/lux/docker_tasks.rb in lux-1.1.3
- old
+ new
@@ -56,10 +56,10 @@
! @image || out_of_date?(timestamp) || @application.options.build_all
end
def timestamp
return Time.now if DISABLED
- if @image = Docker::Image.all.select{|i| i.info['RepoTags'].include? @imagename}.first
+ if @image = Docker::Image.all.select{|i| i.info['RepoTags']&.include? @imagename}.first
Time.at(@image.info['Created'])
else
Rake::EARLY
end
end