Class: Berta::Utils::IncludeFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/berta/utils/include_filter.rb

Overview

Filter that includes vms in given params

Constant Summary

Constants inherited from Filter

Filter::IGNORED_STATES

Instance Method Summary collapse

Methods inherited from Filter

#initialize, #run

Constructor Details

This class inherits a constructor from Berta::Utils::Filter

Instance Method Details

#filter(vmhs) ⇒ Object

Overrides filter method to include vms



6
7
8
9
10
11
12
# File 'lib/berta/utils/include_filter.rb', line 6

def filter(vmhs)
  idi        = filter_ids(vmhs)
  useri      = filter_users(vmhs)
  groupi     = filter_groups(vmhs)
  clusteri   = filter_clusters(vmhs)
  idi | useri | groupi | clusteri
end