File tree 3 files changed +15
-11
lines changed
3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -163,27 +163,30 @@ class OsFamily
163
163
state : 'current' ,
164
164
type : 'distribution'
165
165
} ,
166
- opensuse : {
167
- name : 'openSUSE ' ,
166
+ sles : {
167
+ name : 'SUSE Linux Enterprise Server ' ,
168
168
os_family : 'linux' ,
169
169
upstream : 'linux' ,
170
- model : 'open_source ' ,
170
+ model : 'commercial ' ,
171
171
state : 'current' ,
172
172
type : 'distribution'
173
173
} ,
174
174
opensuse_leap : {
175
175
name : 'openSUSE Leap' ,
176
- type : 'alias' ,
177
- to : 'opensuse'
176
+ os_family : 'linux' ,
177
+ upstream : 'sles' ,
178
+ model : 'open_source' ,
179
+ state : 'current' ,
180
+ type : 'distribution'
178
181
} ,
179
- sles : {
180
- name : 'SUSE Linux Enterprise Server ' ,
182
+ opensuse : {
183
+ name : 'openSUSE ' ,
181
184
os_family : 'linux' ,
182
- upstream : 'opensuse ' ,
183
- model : 'commercial ' ,
185
+ upstream : 'linux ' ,
186
+ model : 'open_source ' ,
184
187
state : 'current' ,
185
188
type : 'distribution'
186
- }
189
+ } ,
187
190
}
188
191
189
192
def self . family_include_distribution? ( family , dist )
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module Kanrisuru
4
- VERSION = '0.2.6 '
4
+ VERSION = '0.2.7 '
5
5
end
Original file line number Diff line number Diff line change 59
59
expect ( Kanrisuru ::Util ::OsFamily . upstream_include_distribution? ( 'linux' , 'linux_mint' ) ) . to eq ( true )
60
60
61
61
expect ( Kanrisuru ::Util ::OsFamily . upstream_include_distribution? ( 'fedora' , 'redhat' ) ) . to eq ( true )
62
+ expect ( Kanrisuru ::Util ::OsFamily . upstream_include_distribution? ( 'sles' , 'opensuse_leap' ) ) . to eq ( true )
62
63
expect ( Kanrisuru ::Util ::OsFamily . upstream_include_distribution? ( 'fedora' , 'centos' ) ) . to eq ( true )
63
64
64
65
expect ( Kanrisuru ::Util ::OsFamily . upstream_include_distribution? ( 'unix_like' , 'linux_mint' ) ) . to eq ( false )
You can’t perform that action at this time.
0 commit comments