Join GitHub today
IPAddr add helper commands get_ip and get_subnet #1636
I had to implement the following for some nicer methods in another instance where I'm using the code. It's my first Ruby PR so please let me know if I've messed anything up!
def get_ip self.inspect.split(/[\/:]/).slice(2) end def get_subnet self.inspect.split(/[\/:>]/).slice(3) end
I'm a bit confused as to why the first CI build is failing, on my own machine it returns success:
If somebody could point me in the right direction I'd be grateful!