Sha256: 143635a66ad0fa6cd2c762881d3e52d35cbd3c65c204d6bb730213dcc777d3eb
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
class Specinfra::Helper::DetectOs::Eos < Specinfra::Helper::DetectOs def detect # Arista Networks EOS if run_command('ls /etc/Eos-release').success? line = run_command('cat /etc/Eos-release').stdout if line =~ /EOS (\d[\d.]*[A-Z]*)/ release = $1 end { :family => 'arista_eos', :release => release } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
specinfra-2.61.1 | lib/specinfra/helper/detect_os/eos.rb |
specinfra-2.61.0 | lib/specinfra/helper/detect_os/eos.rb |