Sha256: 07db2e6e18f29a1ae3e575c1b3ca4a992c513ace73e5bd099b72f173b09222a9
Contents?: true
Size: 245 Bytes
Versions: 19
Compression:
Stored size: 245 Bytes
Contents
require 'execute' def admin? cmd = Execute.new('net session') cmd[:ignore_exit_code] = true cmd[:quiet] = true cmd.execute return true if(cmd[:exit_code] == 0) return false end ENV['HOME'] = ENV['USERPROFILE'] if(admin?)
Version data entries
19 entries across 19 versions & 1 rubygems