Class: Hookit::Platform::Ubuntu
- Defined in:
- lib/hookit/platform/ubuntu.rb
Instance Method Summary collapse
Instance Method Details
#detect? ⇒ 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 |
#name ⇒ Object
9 10 11 |
# File 'lib/hookit/platform/ubuntu.rb', line 9 def name 'ubuntu' end |
#os ⇒ Object
13 14 15 |
# File 'lib/hookit/platform/ubuntu.rb', line 13 def os 'linux' end |