Sha256: d70104368a97fc6743a21343a3857e9b294c1f1c35f8b00d271b3b36d2dc3ba9
Contents?: true
Size: 901 Bytes
Versions: 16
Compression:
Stored size: 901 Bytes
Contents
module R10K module Environment def self.factory @factory ||= R10K::KeyedFactory.new end def self.register(key, klass) factory.register(key, klass) end def self.retrieve(key) factory.retrieve(key) end def self.generate(type, name, basedir, dirname, options = {}) factory.generate(type, name, basedir, dirname, options) end def self.from_hash(name, hash) R10K::Util::SymbolizeKeys.symbolize_keys!(hash) basedir = hash.delete(:basedir) dirname = hash.delete(:dirname) || name type = hash.delete(:type) type = type.is_a?(String) ? type.to_sym : type generate(type, name, basedir, dirname, hash) end require 'r10k/environment/base' require 'r10k/environment/with_modules' require 'r10k/environment/bare' require 'r10k/environment/git' require 'r10k/environment/svn' end end
Version data entries
16 entries across 16 versions & 1 rubygems