Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mirror
yum
Commits
b545cca9
Commit
b545cca9
authored
Oct 07, 2015
by
Tim Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve rubocop warnings
parent
b1aa0361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
providers/repository.rb
providers/repository.rb
+2
-2
No files found.
providers/repository.rb
View file @
b545cca9
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment