Class: RubyGemsRequirementsSystem::Platform::Conda

Inherits:
Base
  • Object
show all
Defined in:
lib/rubygems-requirements-system/platform/conda.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#default_system_packages, #initialize, #install, #valid_system_package?, #valid_system_repository?

Constructor Details

This class inherits a constructor from RubyGemsRequirementsSystem::Platform::Base

Class Method Details

.current_platform?Boolean

Returns:

  • (Boolean)


24
25
26
27
# File 'lib/rubygems-requirements-system/platform/conda.rb', line 24

def current_platform?
  File.executable?(ENV["CONDA_EXE"] || "/nonexistent") or
    (ENV["CONDA_PREFIX"] and ExecutableFinder.exist?("conda"))
end

Instance Method Details

#target?(platform) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rubygems-requirements-system/platform/conda.rb', line 30

def target?(platform)
  platform == "conda"
end