Module: OS

Defined in:
lib/wf_node_api/os.rb

Overview

__ _ _ _ _ __ __ __ \ \ / / |__ (_) |_ _| _| _ _ _ / _| / |

\ \ /\ / /| '_ \| | __/ _ \ |_ | | | / __|/ _ \ |   | |\/| |
 \ V  V / | | | | | ||  __/  _|| |_| \__ \  __/ |___| |  | |
  \_/\_/  |_| |_|_|\__\___|_|   \__,_|___/\___|\____|_|  |_|
                                           Container Manager

Copyright © 2015 David Prandzioch <[email protected]>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Class Method Summary collapse

Class Method Details

.linux?Boolean

Returns true if this is a linux system

Returns:

  • (Boolean)


29
30
31
# File 'lib/wf_node_api/os.rb', line 29

def self.linux?
  RUBY_PLATFORM.include?('linux')
end