Skip to content

Commit 1c887d3

Browse files
committed
fix: use yum epel resource
1 parent 0733594 commit 1c887d3

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

Policyfile.lock.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"revision_id": "3f6451ca3509ae9f5a9e7bb9cff16932b351d2aacd100cab2bfe17c274d03712",
2+
"revision_id": "6acbaa01bc76e4e522f3971c561c32a551273ea043e58f425c907f0bf41eeec1",
33
"name": "ruby_build",
44
"run_list": [
55
"recipe[test::default]"
@@ -27,14 +27,14 @@
2727
},
2828
"ruby_build": {
2929
"version": "2.5.12",
30-
"identifier": "06ed00751d9164e8c3c1fcdca5724685fd294825",
31-
"dotted_decimal_identifier": "1949436080918884.65517432535295346.77541291935781",
30+
"identifier": "4d69fe0305af8d17f1deb92aa104860274568a83",
31+
"dotted_decimal_identifier": "21790112900034445.6739863355957508.147345099885187",
3232
"source": ".",
3333
"cache_key": null,
3434
"scm_info": {
3535
"scm": "git",
3636
"remote": "https://github.com/sous-chefs/ruby_build.git",
37-
"revision": "3f076609f1766a27193c5edf4d93ec1a4320ca61",
37+
"revision": "07335944f462e81987610455906fc2f2591ea67c",
3838
"working_tree_clean": false,
3939
"published": true,
4040
"synchronized_remote_branches": [
@@ -47,14 +47,14 @@
4747
},
4848
"test": {
4949
"version": "1.0.0",
50-
"identifier": "8d6d7c70e209ff1d701c07390ca34eb4096d656c",
51-
"dotted_decimal_identifier": "39808352953436671.8286040007183523.86535159244140",
50+
"identifier": "5e812c6fbd7fd07e16cfe87849d7bf64cf448377",
51+
"dotted_decimal_identifier": "26600675664035792.35490929279781335.210439695008631",
5252
"source": "test/cookbooks/test",
5353
"cache_key": null,
5454
"scm_info": {
5555
"scm": "git",
5656
"remote": "https://github.com/sous-chefs/ruby_build.git",
57-
"revision": "3f076609f1766a27193c5edf4d93ec1a4320ca61",
57+
"revision": "07335944f462e81987610455906fc2f2591ea67c",
5858
"working_tree_clean": false,
5959
"published": true,
6060
"synchronized_remote_branches": [

resources/install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
end
2525
end
2626

27-
include_recipe 'yum-epel'
27+
yum_epel 'default'
2828
end
2929

3030
package %w(tar bash curl git) unless platform_family?('mac_os_x', 'freebsd')

spec/resources/install_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
require 'spec_helper'
2+
3+
describe 'test::default' do
4+
context 'AlmaLinux 8' do
5+
platform 'almalinux', '8'
6+
step_into :ruby_build_install
7+
8+
before do
9+
stub_command('yum-config-manager --dump powertools | grep -q "enabled = 1"').and_return(false)
10+
end
11+
12+
it { is_expected.to install_package('yum-utils') }
13+
it { is_expected.to run_execute('yum-config-manager --enable powertools') }
14+
it { is_expected.to create_yum_epel('default') }
15+
it { is_expected.not_to include_recipe('yum-epel') }
16+
end
17+
end

0 commit comments

Comments
 (0)