lib/serverspec/backend/exec.rb in serverspec-0.6.15 vs lib/serverspec/backend/exec.rb in serverspec-0.6.16
- old
+ new
@@ -180,10 +180,14 @@
elsif run_command('ls /etc/debian_version')[:exit_status] == 0
'Debian'
elsif run_command('ls /etc/gentoo-release')[:exit_status] == 0
'Gentoo'
elsif run_command('uname -s')[:stdout] =~ /SunOS/i
- 'Solaris'
+ if run_command('grep -q SmartOS /etc/release')
+ 'SmartOS'
+ else
+ 'Solaris'
+ end
elsif run_command('uname -s')[:stdout] =~ /Darwin/i
'Darwin'
else
'Base'
end