module Crimson::ENV

Defined in:

env.cr
env/linux.cr

Constant Summary

LIBRARY = Path[::ENV["XDG_DATA_HOME"]? || (((Path.home / ".local") / "share") / "crimson")]
LIBRARY_BIN = LIBRARY / "bin"
LIBRARY_BIN_CRYSTAL = LIBRARY_BIN / "crystal"
LIBRARY_BIN_SHARDS = LIBRARY_BIN / "shards"
LIBRARY_CRYSTAL = LIBRARY / "crystal"
MIN_VERSION = SemanticVersion.new(1, 2, 0)
TARGET_BIN_CRYSTAL = "/usr/local/bin/crystal"
TARGET_BIN_SHARDS = "/usr/local/bin/shards"
TARGET_IDENTIFIER = "1-linux-x86_64.tar.gz"

Class Method Summary

Class Method Detail

def self.decompress(root : Path, path : String, debug : Bool) : Nil #

[View source]
def self.fetch_from_version(req : String | Nil) : String | Nil #

[View source]
def self.fetch_versions : Array(String) #

[View source]
def self.install_additional_dependencies(prompt : Bool) : Nil #

[View source]
def self.install_dependencies(prompt : Bool) : Nil #

[View source]
def self.installed?(version : String) : Bool #

[View source]
def self.installed_versions : Array(SemanticVersion) #

[View source]
def self.setup_executable_paths : Nil #

[View source]
def self.switch(path : Path) : Nil #

[View source]