LocalhostSourceLocalhostSystem

module System

Nested

Definitions

def self.current

Implementation

def self.current
	case RUBY_PLATFORM
	when /darwin/
		require "localhost/system/darwin"
		Darwin
	when /linux/
		require "localhost/system/linux"
		Linux
	else
		raise NotImplementedError, "Unsupported platform: #{RUBY_PLATFORM}"
	end
end