class Barista::Behaviors::Software::Fetchers::Net

Overview

Base Net fetcher Assumes that all sources are tar types

TODO Revisit/Rewrite

Included Modules

Defined in:

barista/behaviors/software/fetchers/net.cr

Constant Summary

COMPRESSED_TAR_EXTENSIONS = [".tar.gz", ".tgz", "tar.bz2", ".tar.xz", ".txz", ".tar.lz", ".tar.lzma"] of ::String

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, *, md5 : String | Nil = nil, sha1 : String | Nil = nil, sha256 : String | Nil = nil, sha512 : String | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new, tls : HTTP::Client::TLSContext | Nil = nil, retry : Int32 = 2, binary : Bool = false, compress : Bool = false, strip : Int32 = 1, extension : String | Nil = nil) #

[View source]

Instance Method Detail

def algorithim : {String, String?}? #

[View source]
def binary : Bool #

[View source]
def compress : Bool #

[View source]
def execute(dest_dir : String, name : String) #

downloads and extracts this url to #{dest_dir}/#{name} which should also be #{project.source_dir}/#{task.name}


[View source]
def extension : String? #

[View source]
def headers : HTTP::Headers #

[View source]
def location #

[View source]
def strip : Int32 #

[View source]
def tls : Bool | OpenSSL::SSL::Context::Client | Nil #

[View source]
def uri : URI #

[View source]