class Locomotive::Steam::Repositories
Public Instance Methods
build_adapter(options)
click to toggle source
# File lib/locomotive/steam/repositories.rb, line 48 def build_adapter(options) name = ((options || {})[:name] || :filesystem).to_s begin require_relative "adapters/#{name.downcase}" rescue LoadError => e puts 'Not a Steam built-in adapter' puts e.inspect puts e.backtrace end klass = "Locomotive::Steam::#{name.camelize}Adapter".constantize klass.new(options) end