class Barista::Behaviors::Software::Fetchers::Net
inherits Reference
#
Base Net fetcher Assumes that all sources are tar types TODO: Revisit/Rewrite
Included modules
Barista::Behaviors::Software::Fetchers::Verifiable
Barista::Behaviors::Software::GenericCommands
Constants#
COMPRESSED_TAR_EXTENSIONS = [".tar.gz", ".tgz", "tar.bz2", ".tar.xz", ".txz", ".tar.lz", ".tar.lzma"] of ::String
#
Constructors#
.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)
#
Methods#
#algorithim
#
#binary
#
#compress
#
#execute(dest_dir : String, name : String)
#
downloads and extracts this url to #{dest_dir}/#{name}
which should also be
#{project.source_dir}/#{task.name}