def list(pattern = '.*')
      pattern = Regexp.new(pattern || '.*')

      @outputter.puts "Indices from host #{@host} matching the pattern #{pattern.inspect}\n\n" if @verbose

      list = indices(pattern).sort
      list.each {|i| @outputter.puts i.inspect } if @verbose
      list
    end
def list(pattern = '.*')
      pattern = Regexp.new(pattern || '.*')

      @outputter.puts "Indices from host #{@host} matching the pattern #{pattern.inspect}\n\n" if @verbose

      list = indices(pattern).sort
      list.each {|i| @outputter.puts i.inspect } if @verbose
      list
    end
Initializes a Desi::IndexManager instance

 @param       [#to_hash]  opts                             Hash of extra opts

 @option opts [#to_s]     :host ('http://localhost:9200')  Host to manage indices for
 @option opts [Boolean]   :verbose   (nil) Whether to output the actions' result
                                           on STDOUT
 @option opts [#new]      :http_client_factory (Desi::HttpClient) HTTP transport class
                                                                  to use

 @note The +:http_client_factory+ should return an instance that responds
       to #get and #delete
 @return [void]

 @api public
 List index names for the specified cluster

 You can restrict the list using a regular expression pattern. (The default
 pattern being +/.*/+, all releases will be returned if you do not
 specify anything.)

 @param   [#to_s]          pattern ('.*') Regexp pattern used to restrict the selection
 @return  [Array<String>]                 List of index names of the ES cluster

 @note This method will also output its result on STDOUT if +@verbose+ is
       true

 @example List all indices whose name begins with "foo"
    Desi::IndexManager.new.list('^foo') #=> ["foo1", "foo2", "foo3"]

 @api  public