Top Level Namespace
Defined Under Namespace
Modules: Databasedotcom, RForce, UtilityPack
Instance Method Summary collapse
Instance Method Details
#on_work_network ⇒ Object
1 2 3 4 5 6 7 8 |
# File 'lib/databasedotcom_additions/set_proxy_if_needed.rb', line 1 def on_work_network if RUBY_PLATFORM =~ /32/ # windows %x{ipconfig /all}.split.grep(/54\./).count > 0 else %x{ifconfig | grep -i "inet 54." > /dev/null} $? == 0 end end |