Module: Stax::Sg
- Defined in:
- lib/stax/mixin/sg.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#get_my_ip ⇒ Object
look up my local public IP.
- #sg_authorize(id, cidr = get_my_ip, port = 22) ⇒ Object
- #sg_revoke(id, cidr = get_my_ip, port = 22) ⇒ Object
Class Method Details
Instance Method Details
#get_my_ip ⇒ Object
look up my local public IP
12 13 14 |
# File 'lib/stax/mixin/sg.rb', line 12 def get_my_ip URI.parse('http://v4.ident.me/').read + '/32' end |