Sha256: ba8dff2b14089c88c819bc89bc9a84ce403bf9f9705bca9a98b46ff4552bc9a9

Contents?: true

Size: 231 Bytes

Versions: 5

Compression:

Stored size: 231 Bytes

Contents

class ProviderFactory

  def create(provider_info)
    path = File.join File.dirname(__FILE__), 'providers', provider_info[:name], provider_info[:version], 'provider.rb'
    load path
    Provider.new provider_info[:url]
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
help_desk_dashboard-0.0.8 lib/help_desk_dashboard/lib/provider_factory.rb
help_desk_dashboard-0.0.7 lib/help_desk_dashboard/lib/provider_factory.rb
help_desk_dashboard-0.0.6 lib/help_desk_dashboard/lib/provider_factory.rb
help_desk_dashboard-0.0.5 lib/help_desk_dashboard/lib/provider_factory.rb
help_desk_dashboard-0.0.3 lib/help-desk-dashboard/provider_factory.rb