Method: Unix::Pkg#update_apt_if_needed
- Defined in:
- lib/beaker/host/unix/pkg.rb
#update_apt_if_needed ⇒ Object
If apt has not been updated since the last repo deployment it is updated. Otherwise this is a noop
56 57 58 59 60 61 62 63 |
# File 'lib/beaker/host/unix/pkg.rb', line 56 def update_apt_if_needed if self['platform'] =~ /debian|ubuntu|cumulus|huaweios/ if @apt_needs_update execute("apt-get update") @apt_needs_update = false end end end |