Module: Aix::Exec
- Includes:
- Beaker::CommandFactory
- Defined in:
- lib/beaker/host/aix/exec.rb
Instance Method Summary collapse
Methods included from Beaker::CommandFactory
Instance Method Details
#get_ip ⇒ Object
4 5 6 |
# File 'lib/beaker/host/aix/exec.rb', line 4 def get_ip execute("ifconfig -a inet| awk '/broadcast/ {print $2}' | cut -d/ -f1 | head -1").strip end |