1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

add a method to IPAddr instead of breaking a useful one

This commit is contained in:
Jesse Newland 2012-05-17 09:40:12 -04:00
parent 9e3716026c
commit 7a2719fbf9

View file

@ -2,7 +2,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'ecloud'))
require 'ipaddr' require 'ipaddr'
class IPAddr class IPAddr
def mask def mask_string
_to_string(@mask_addr) _to_string(@mask_addr)
end end
end end
@ -367,7 +367,7 @@ module Fog
end end
def netmask def netmask
self[:netmask] || subnet_ipaddr.mask self[:netmask] || subnet_ipaddr.mask_string
end end
def dns def dns