class RuboCop::Cop::Chef::RedundantCode::AptRepositoryNotifiesAptUpdate

There is no need to notify an apt-get update when an apt_repository is created as this is done automatically by the apt_repository resource.

@example

### incorrect
apt_repository 'my repo' do
  uri 'http://packages.example.com/debian'
  components %w(stable main)
  deb_src false
  notifies :run, 'execute[apt-get update]', :immediately
end

### correct
apt_repository 'my repo' do
  uri 'http://packages.example.com/debian'
  components %w(stable main)
  deb_src false
end