Module: Fog::Brightbox::Compute::ResourceLocking
- Included in:
- DatabaseServer, DatabaseSnapshot, Image, LoadBalancer, Server, Volume
- Defined in:
- lib/fog/brightbox/compute/resource_locking.rb
Instance Method Summary collapse
Instance Method Details
#lock! ⇒ Object
13 14 15 |
# File 'lib/fog/brightbox/compute/resource_locking.rb', line 13 def lock! locking_request(:lock) end |
#locked? ⇒ Boolean
5 6 7 8 9 10 11 |
# File 'lib/fog/brightbox/compute/resource_locking.rb', line 5 def locked? if attributes.key?("locked") || attributes.key?(:locked) attributes["locked"] || attributes[:locked] || false else false end end |
#unlock! ⇒ Object
17 18 19 |
# File 'lib/fog/brightbox/compute/resource_locking.rb', line 17 def unlock! locking_request(:unlock) end |