Module: Aix::Exec

Includes:
Beaker::CommandFactory
Defined in:
lib/beaker/host/aix/exec.rb

Instance Attribute Summary

Attributes included from Beaker::CommandFactory

#assertions

Instance Method Summary collapse

Methods included from Beaker::CommandFactory

#execute, #fail_test

Instance Method Details

#get_ipObject



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