class Barista::Behaviors::Software::Fetchers::Net
- Barista::Behaviors::Software::Fetchers::Net
- Reference
- Object
Overview
Base Net fetcher Assumes that all sources are tar types
TODO Revisit/Rewrite
Included Modules
Defined in:
barista/behaviors/software/fetchers/net.crConstant Summary
-
COMPRESSED_TAR_EXTENSIONS =
[".tar.gz", ".tgz", "tar.bz2", ".tar.xz", ".txz", ".tar.lz", ".tar.lzma"] of ::String
Constructors
Instance Method Summary
- #algorithim : {String, String?}?
- #binary : Bool
- #compress : Bool
-
#execute(dest_dir : String, name : String)
downloads and extracts this url to
#{dest_dir}/#{name}
which should also be#{project.source_dir}/#{task.name}
- #extension : String?
- #headers : HTTP::Headers
- #location
- #strip : Int32
- #tls : Bool | OpenSSL::SSL::Context::Client | Nil
- #uri : URI
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)
#
Instance Method Detail
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}