Class: Fog::Scaleway::Compute::Server
- Inherits:
-
Object
- Object
- Fog::Scaleway::Compute::Server
- Defined in:
- lib/chef/provisioning/fog_driver/providers/scaleway.rb
Overview
We’re monkeypatching here to avoid overriding too much of the base class. This monkey patch will be removed if we can merge those changes upstream
Instance Method Summary collapse
Instance Method Details
#disassociate_address(ip) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/chef/provisioning/fog_driver/providers/scaleway.rb', line 15 def disassociate_address(ip) ip = ip.address if ip.respond_to? :address if public_ip && public_ip.address == ip public_ip.server = nil public_ip.save end reload end |