Sha256: da5233a593ed5885f62d2cd1a3795cbcd1baaac1dfac998c133eae543022765b
Contents?: true
Size: 616 Bytes
Versions: 19
Compression:
Stored size: 616 Bytes
Contents
require 'keystone/os/abstract_os' module Keystone::Os autoload :Centos, 'keystone/os/centos' autoload :Linux, 'keystone/os/linux' autoload :Darwin, 'keystone/os/darwin' autoload :Osx, 'keystone/os/osx' autoload :Unix, 'keystone/os/unix' # autoload :Windows, 'keystone/env/windows.rb' # fu*k windows def self.oses @oses ||= constants end def self.get case RUBY_PLATFORM when /linux/ # TODO only centos impremented Keystone::Os::Linux.get() when /darwin/ # TODO only osx impremented Keystone::Os::Osx.new else # TODO end end end
Version data entries
19 entries across 19 versions & 3 rubygems