- if key_url
- execute "apt-key-#{key}-install" do
- command "/usr/bin/apt-key adv --fetch-keys #{key_url}"
- not_if "/usr/bin/apt-key adv --list-keys #{key}"
- notifies :run, "execute[apt-update-#{new_resource.name}]"
+ if new_resource.key_url
+ execute "apt-key-#{new_resource.key}-install" do
+ command "/usr/bin/apt-key adv --fetch-keys #{new_resource.key_url}"
+ not_if "/usr/bin/apt-key adv --list-keys #{new_resource.key}"
+ notifies :run, "execute[apt-update-#{new_resource.source_name}]"