Class: Fog::Terremark::Shared::NodeService
- Inherits:
-
Model
- Object
- Model
- Fog::Terremark::Shared::NodeService
- Defined in:
- lib/fog/terremark/models/shared/nodeservice.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
16 17 18 |
# File 'lib/fog/terremark/models/shared/nodeservice.rb', line 16 def destroy service.delete_node_service(self.Id) end |
#save ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fog/terremark/models/shared/nodeservice.rb', line 20 def save requires :Name, :Port, :InternetServiceId data = service.add_node_service( service_id = self.InternetServiceId, ip = self.IpAddress, name = self.Name, port = self.Port, = {"Enabled" => 'true', "Description" => self.Name, } ) merge_attributes(data.body) true end |