# File lib/imagefactory/console.rb, line 165
  def push_image(image_id, provider, credentials)
    @logger.warn "[DEPRECATION] 'push_image' is deprecated.  Please use 'push' instead."
    # TODO: return error if there is a problem calling this method or getting
    # a factory instance
    begin
      response = factory.provider_image(image_id, provider, credentials)
      build_adaptor(response)
    rescue Exception => e
      @logger.debug "Encountered error in push_image: #{e}"
      return e
    end
  end