class Generamba::TemplateInstallerFactory
Factory that creates a proper installer for a given template type
Public Instance Methods
installer_for_type(type)
click to toggle source
Provides the appropriate strategy for a given template type
# File lib/generamba/template/installer/template_installer_factory.rb, line 9 def installer_for_type(type) case type when TemplateDeclarationType::LOCAL_TEMPLATE return Generamba::LocalInstaller.new when TemplateDeclarationType::REMOTE_TEMPLATE return Generamba::RemoteInstaller.new when TemplateDeclarationType::CATALOG_TEMPLATE return Generamba::CatalogInstaller.new else return nil end end