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

Version Path
kanamei-kanamei-keystone-0.0.12 lib/keystone/os.rb
kanamei-kanamei-keystone-0.0.13 lib/keystone/os.rb
kanamei-keystone-0.0.11 lib/keystone/os.rb
kanamei-keystone-0.0.12 lib/keystone/os.rb
kanamei-keystone-0.0.14 lib/keystone/os.rb
kanamei-keystone-0.0.15 lib/keystone/os.rb
kanamei-keystone-0.0.16 lib/keystone/os.rb
kanamei-keystone-0.0.17 lib/keystone/os.rb
kanamei-keystone-0.0.18 lib/keystone/os.rb
kanamei-keystone-0.0.19 lib/keystone/os.rb
kanamei-keystone-0.0.20 lib/keystone/os.rb
kanamei-keystone-0.0.21 lib/keystone/os.rb
kanamei-keystone-0.0.22 lib/keystone/os.rb
kanamei-keystone-0.0.23 lib/keystone/os.rb
kanamei-keystone-0.0.24 lib/keystone/os.rb
kanamei-keystone-0.0.25 lib/keystone/os.rb
kanamei-keystone-0.0.26 lib/keystone/os.rb
kanamei-keystone-0.0.27 lib/keystone/os.rb
keystone-0.0.29 lib/keystone/os.rb