mirror of https://github.com/kubernetes/kops.git
Add detection of Debian distribution
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
This commit is contained in:
parent
ddc21c750f
commit
b336829add
|
@ -68,6 +68,11 @@ func (d *Distribution) IsDebianFamily() bool {
|
||||||
return d.packageFormat == "deb"
|
return d.packageFormat == "deb"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsDebian returns true if this distribution is Debian
|
||||||
|
func (d *Distribution) IsDebian() bool {
|
||||||
|
return d.project == "debian"
|
||||||
|
}
|
||||||
|
|
||||||
// IsUbuntu returns true if this distribution is Ubuntu (but not debian)
|
// IsUbuntu returns true if this distribution is Ubuntu (but not debian)
|
||||||
func (d *Distribution) IsUbuntu() bool {
|
func (d *Distribution) IsUbuntu() bool {
|
||||||
return d.project == "ubuntu"
|
return d.project == "ubuntu"
|
||||||
|
|
Loading…
Reference in New Issue