Sha256: 0d1d9794041480a25cb39c71cc2cb29ab23b04cf273ce595e49dbcf2bd8d05ed
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
module Stairs module EnvAdapters autoload :Rbenv, 'stairs/env_adapters/rbenv' autoload :RVM, 'stairs/env_adapters/rvm' autoload :Dotenv, 'stairs/env_adapters/dotenv' ADAPTERS = { dotenv: Dotenv, rbenv: Rbenv, rvm: RVM }.freeze def self.recommended_adapter ADAPTERS.values.find(&:present?) end def self.name_for_adapter_class(adapter) ADAPTERS.find { |_n, a| a == adapter }.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stairs-0.10.0 | lib/stairs/env_adapters.rb |