Method: Pygmy::Linux.ubuntu_cmd
- Defined in:
- lib/pygmy/linux.rb
.ubuntu_cmd ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/pygmy/linux.rb', line 23 def self.ubuntu_cmd %q( if $(which lsb_release >/dev/null 2>&1); then lsb_release -d | grep --color=auto "Ubuntu" > /dev/null else uname -a | grep --color=auto "Ubuntu" > /dev/null fi ) end |