From b545cca9afa75f7f13deba853f1dee96e265449d Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 7 Oct 2015 11:28:31 -0700 Subject: [PATCH] Resolve rubocop warnings --- providers/repository.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/repository.rb b/providers/repository.rb index 6c9d9c7..e10b4ac 100644 --- a/providers/repository.rb +++ b/providers/repository.rb @@ -36,7 +36,7 @@ action :create do variables(config: new_resource) if new_resource.make_cache notifies :run, "execute[yum clean #{new_resource.repositoryid}]", :immediately - notifies :run, "execute[yum-makecache]", :immediately + notifies :run, 'execute[yum-makecache]', :immediately notifies :create, "ruby_block[yum-cache-reload-#{new_resource.repositoryid}]", :immediately end end @@ -47,7 +47,7 @@ action :create do end # get the metadata for this repo only - execute "yum-makecache" do + execute 'yum-makecache' do command "yum -q -y makecache --disablerepo=* --enablerepo=#{new_resource.repositoryid}" action :nothing only_if { new_resource.enabled } -- GitLab