Class: Landrush::Cap::Debian::DebianHost

Inherits:
Object
  • Object
show all
Defined in:
lib/landrush/cap/host/debian/host.rb

Instance Method Summary collapse

Instance Method Details

#detect?(_env) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/landrush/cap/host/debian/host.rb', line 5

def detect?(_env)
  return false unless Pathname('/etc/issue').exist?
  system("cat /etc/issue | grep 'Debian' > /dev/null 2>&1")
end