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