Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/puppet_x/enterprisemodules/oci/monkey_patches/dir.rb
Overview
Dir.home is used in the sdk, but will fail when run as a service. That’s why we monley patch our own implementation here that will NOT fail when run as a service. We patch it before requiring oci, because it is used in constants
Class Method Summary collapse
Class Method Details
.home ⇒ Object
9 10 11 |
# File 'lib/puppet_x/enterprisemodules/oci/monkey_patches/dir.rb', line 9 def self.home Etc.getpwuid(Process.uid).dir end |