Project

General

Profile

Download (384 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / models / concerns / fog_extensions / fogdocker / images.rb @ 9f0918fc

1
# Compatibility fixes - to be removed once 1.7 compatibility is no longer required
2
module FogExtensions
3
  module Fogdocker
4
    module Images
5
      extend ActiveSupport::Concern
6

    
7
      def image_search(query = {})
8
        Docker::Util.parse_json(Docker.connection.get('/images/search', query)).map do |image|
9
          downcase_hash_keys(image)
10
        end
11
      end
12
    end
13
  end
14
end