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
- .get ⇒ Object
-
.oses ⇒ Object
autoload :Windows, ‘keystone/env/windows.rb’ # fu*k windows.
Class Method Details
.get ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/keystone/os.rb', line 14 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 |
.oses ⇒ Object
autoload :Windows, ‘keystone/env/windows.rb’ # fu*k windows
10 11 12 |
# File 'lib/keystone/os.rb', line 10 def self.oses @oses ||= constants end |