Method: Fog::OpenStack::SharedFileSystem::Share#save
- Defined in:
- lib/fog/openstack/shared_file_system/models/share.rb
#save ⇒ Object
38 39 40 41 42 43 |
# File 'lib/fog/openstack/shared_file_system/models/share.rb', line 38 def save raise Fog::Errors::Error, 'Resaving an existing object may create a duplicate' if persisted? requires :size, :share_proto merge_attributes(service.create_share(share_proto, size, attributes).body['share']) true end |