Method: R10K::Source.from_hash
- Defined in:
- lib/r10k/source.rb
.from_hash(name, hash) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/r10k/source.rb', line 23 def self.from_hash(name, hash) hash.extend R10K::Util::CoreExt::HashExt::SymbolizeKeys hash.symbolize_keys! basedir = hash.delete(:basedir) type = hash.delete(:type) type = type.is_a?(String) ? type.to_sym : type generate(type, name, basedir, hash) end |