Method: Infrastructure#machines
- Defined in:
- lib/cluster/infrastructure.rb
permalink #machines(*filter_groups) ⇒ Object
[View source]
66 67 68 69 70 71 72 |
# File 'lib/cluster/infrastructure.rb', line 66 def machines(*filter_groups) if filter_groups.empty? self.instances else self.instances.select {|i| i.groups.any? {|g| filter_groups.include? g }} end end |