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