Module: Keystone::Os

Defined in:
lib/keystone/os.rb,
lib/keystone/os/osx.rb,
lib/keystone/os/unix.rb,
lib/keystone/os/linux.rb,
lib/keystone/os/centos.rb,
lib/keystone/os/darwin.rb,
lib/keystone/os/abstract_os.rb

Defined Under Namespace

Classes: AbstractOs, Centos, Darwin, Linux, Osx, Unix

Class Method Summary collapse

Class Method Details

.getObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/keystone/os.rb', line 15

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

.osesObject

autoload :Windows, ‘keystone/env/windows.rb’ # fu*k windows



11
12
13
# File 'lib/keystone/os.rb', line 11

def self.oses
  @oses ||= constants
end