Module: SlicehostSupport
- Included in:
- Policy
- Defined in:
- lib/slicehost_support.rb
Defined Under Namespace
Classes: Slice
Instance Method Summary collapse
Instance Method Details
#slicehost_get_ips(api_key) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/slicehost_support.rb', line 7 def slicehost_get_ips(api_key) Slice.site = api_key slices = Slice.find(:all) ips = [] for slice in slices for address in slice.addresses ips << address end end ips end |