Method: ForemanDocker::ImageSearch#search
- Defined in:
- app/services/foreman_docker/image_search.rb
#search(query) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'app/services/foreman_docker/image_search.rb', line 27 def search(query) return [] if query[:term].blank? || query[:term] == ':' unless query[:tags] == 'true' images(query[:term]) else (query[:term]) end end |