abstract class Zap::Installer::Base

Direct Known Subclasses

Defined in:

installer/installer.cr

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new(state : Commands::Install::State) #

[View source]

Instance Method Detail

abstract def install : Nil #

[View source]
def installed_packages_with_hooks : Array({Zap::Package, Path}) #

[View source]
def main_package : Package #

[View source]
def prune_orphan_modules #

Prune unused dependencies from the filesystem


[View source]
def remove(dependencies : Set(Tuple(String, String | Package::Alias, String))) : Nil #

Remove a set of direct dependencies from the filesystem


[View source]

[View source]

Macro Detail

macro check_os_and_cpu!(package, *, early, optional = nil) #

Raise if the architecture is not supported. If the package is optional, skip it.


[View source]