# File lib/imagefactory/console.rb, line 68 def build(template, targets, image='', build='') targets = [targets] unless targets.instance_of?(Array) # TODO: return error if there is a problem calling this method or getting # a factory instance begin response = factory.build_image(image, build, template, targets) build_adaptors(response) rescue Exception => e @logger.debug "Encountered error in build_image: #{e}" return e end end