Sha256: 18f6efa1ec98a0e71a6b7930c90aad95b16e4d1580d77c79b7bdb79362492dfa

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

$: << File.dirname(__FILE__) + '/../lib'

require 'rubygems'
require 'kaltura-ruby'
require 'kaltura_fu'

ActionView::Base.send :include, KalturaFu::ViewHelpers

kaltura_yml = File.join(RAILS_ROOT,'config','kaltura.yml')

unless File.exists?(kaltura_yml)
  raise RuntimeError, "Unable to find \"config/kaltura.yml\" file."
end


KalturaFu.config = YAML.load_file(kaltura_yml).recursively_symbolize_keys[RAILS_ENV.to_sym]


unless[:partner_id,:subpartner_id,:administrator_secret].all? {|key| KalturaFu.config.key?(key)}
  raise RuntimeError, "Kaltura config requires :partner_id, :subpartner_id,"+
		      "and :administrator_secret keys"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kaltura_fu-0.1.3.prel rails/init.rb
kaltura_fu-0.1.2.prel rails/init.rb