Class: Berta::Utils::ExcludeFilter

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

Overview

Filter that excludes 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 exclude vms



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

def filter(vmhs)
  ide = filter_ids(vmhs)
  usere = filter_users(vmhs)
  groupe = filter_groups(vmhs)
  clustere = filter_clusters(vmhs)
  vmhs - ide - usere - groupe - clustere
end