Module: Kaya::Support::IfConfig
- Defined in:
- lib/kaya/support/if_config.rb
Class Method Summary collapse
Class Method Details
.ip ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/kaya/support/if_config.rb', line 4 def self.ip begin if_config_output = `ifconfig` if_config_output.scan(/:(\d+\.\d+\.\d+\.\d+)/).first.first rescue nil end end |