Module: Json2hcl::OS
- Defined in:
- lib/json2hcl/os.rb
Class Method Summary collapse
Class Method Details
.arch ⇒ Object
11 12 13 14 |
# File 'lib/json2hcl/os.rb', line 11 def self.arch return '386' if ::OS.bits == 32 return 'amd64' if ::OS.bits == 64 end |
.os ⇒ Object
5 6 7 8 9 |
# File 'lib/json2hcl/os.rb', line 5 def self.os return 'linux' if ::OS.linux? return 'darwin' if ::OS.mac? return 'windows' if ::OS.windows? end |