Class: Hookit::Platform::Smartos

Inherits:
Base
  • Object
show all
Defined in:
lib/hookit/platform/smartos.rb

Instance Method Summary collapse

Instance Method Details

#detect?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/hookit/platform/smartos.rb', line 5

def detect?
  ! `cat /etc/release 2>/dev/null | grep -i SmartOS`.empty? 
end

#nameObject



9
10
11
# File 'lib/hookit/platform/smartos.rb', line 9

def name
  'smartos'
end

#osObject



13
14
15
# File 'lib/hookit/platform/smartos.rb', line 13

def os
  'sun'
end