Sha256: 73b3162a6d8ffe74fe031291b55bd11cbe03183df8fd8cb3f5b9ca346a7aba42
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
module Overapp module Load class Factory include FromHash attr_accessor :descriptor, :type, :entry_ops def loader raise "bad #{descriptor}" if descriptor.blank? if type.to_s.to_sym == :command Command.new(:descriptor => descriptor).tap { |x| x.relative_output_path = entry_ops[:path] if entry_ops[:path].present? } elsif Git.repo?(descriptor) Repo.new(:descriptor => descriptor) else LocalDir.new(:descriptor => descriptor) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems