poise-languages 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/poise_languages/scl/mixin.rb +2 -1
- data/lib/poise_languages/version.rb +1 -1
- data/test/spec/scl/mixin_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37488d2f8c5adc957ff81874a1229328e0630ed4
|
4
|
+
data.tar.gz: c3c3e6b0264cfc7adf15d768cfe64dc02de5c02c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184db76074b6c80ddd66df87e750de223647bc7579e24132b7ba2ddf858d5495827275d6a703c191922d31f6a6e28caf5ee8ab2f6055747cae9c9174935f38cd
|
7
|
+
data.tar.gz: 9f6123eb12a35037ff8b1414d7374322a11021ec623234284f4c55c2724f7ee2ec7b4726caa4d6587de3516391ae7900642c135d1268f0d7a863829150d949bc
|
data/CHANGELOG.md
CHANGED
@@ -80,7 +80,8 @@ module PoiseLanguages
|
|
80
80
|
module ClassMethods
|
81
81
|
def provides_auto?(node, resource)
|
82
82
|
# They don't build 32-bit versions for these and only for RHEL/CentOS.
|
83
|
-
|
83
|
+
# TODO: What do I do about Fedora and/or Amazon?
|
84
|
+
return false unless node['kernel']['machine'] == 'x86_64' && node.platform?('redhat', 'centos')
|
84
85
|
version = inversion_options(node, resource)['version']
|
85
86
|
!!find_scl_package(node, version)
|
86
87
|
end
|
data/test/spec/scl/mixin_spec.rb
CHANGED
@@ -203,7 +203,7 @@ EOH
|
|
203
203
|
let(:new_resource) { double('resource') }
|
204
204
|
subject { provider(:poise_test).provides_auto?(node, new_resource) }
|
205
205
|
before do
|
206
|
-
allow(node).to receive(:
|
206
|
+
allow(node).to receive(:platform?) {|*names| names.include?('redhat') || names.include?('centos') }
|
207
207
|
allow(provider(:poise_test)).to receive(:inversion_options).with(node, new_resource).and_return({})
|
208
208
|
allow(provider(:poise_test)).to receive(:find_scl_package).with(node, nil).and_return({})
|
209
209
|
end
|