Sha256: be0763296c35c51f9bd133baa23e33a140e703123ae877710b5c54eb4e72265f
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
module Fog module Compute class Fogdocker class Real def image_search(query = {}) Docker::Util.parse_json(Docker.connection.get('/images/search', query)).map do |image| downcase_hash_keys(image) end end end class Mock def image_search(query = {}) [ {"description" => "", "is_official" => false, "is_automated" => false, "name" => "wma55/u1210sshd", "star_count" => 0}, {"description" => "", "is_official" => false, "is_automated" => false, "name" => "jdswinbank/sshd", "star_count" => 0} ] end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems