Method: Beaker::HostPrebuiltSteps#apt_get_update
- Defined in:
- lib/beaker/host_prebuilt_steps.rb
#apt_get_update(hosts) ⇒ Object
Run 'apt-get update' on the provided host or hosts. If the platform of the provided host is not ubuntu or debian: do nothing.
155 156 157 158 159 160 |
# File 'lib/beaker/host_prebuilt_steps.rb', line 155 def apt_get_update hosts block_on hosts do |host| # -qq: Only output errors to stdout host.exec(Command.new("apt-get update -qq")) if /ubuntu|debian/.match?(host[:platform]) end end |