Sha256: e5e26ad1ddc460e5714c679caa58a70806c7ac6e129d30910b93740ad4fb78fe
Contents?: true
Size: 387 Bytes
Versions: 6
Compression:
Stored size: 387 Bytes
Contents
# Delegates to: # # 1. Local # 2. Git # class TerraspaceBundler::Mod class Fetcher def initialize(mod) @mod = mod end def instance type = @mod.type == "registry" ? "git" : @mod.type klass = "TerraspaceBundler::Mod::Fetcher::#{type.camelize}".constantize klass.new(@mod) # IE: Local.new(@mod), Git.new(@mod), S3.new(@mod), etc end end end
Version data entries
6 entries across 6 versions & 1 rubygems