Sha256: 4e639368591f5036dc2323ff482d936ea69704a15509fc86f252f5e02b7a6e12
Contents?: true
Size: 684 Bytes
Versions: 23
Compression:
Stored size: 684 Bytes
Contents
module Fog module Brightbox class Compute module ResourceLocking def locked? if attributes.key?("locked") || attributes.key?(:locked) attributes["locked"] || attributes[:locked] || false else false end end def lock! locking_request(:lock) end def unlock! locking_request(:unlock) end private def locking_request(lock_setting) requires :identity data = service.send(:"#{lock_setting}_resource_#{resource_name}", identity) merge_attributes(data) true end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems