Class: Hookit::Platform::Ubuntu

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

Instance Method Summary collapse

Instance Method Details

#detect?Boolean

Returns:

  • (Boolean)


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

def detect?
  ! `[ -x /usr/bin/lsb_release ] && /usr/bin/lsb_release -i 2>/dev/null | grep Ubuntu`.empty?
end

#nameObject



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

def name
  'ubuntu'
end

#osObject



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

def os
  'linux'
end