Class: Rhoconnect::Base
- Inherits:
-
Object
- Object
- Rhoconnect::Base
- Defined in:
- lib/rhoconnect.rb
Overview
Base rhoconnect application class
Class Method Summary collapse
-
.initializer(path = nil) ⇒ Object
Add everything in vendor to load path TODO: Integrate with 3rd party dependency management.
- .store_blob(obj, field_name, blob) ⇒ Object
Class Method Details
.initializer(path = nil) ⇒ Object
Add everything in vendor to load path TODO: Integrate with 3rd party dependency management
313 314 315 316 317 318 319 320 321 |
# File 'lib/rhoconnect.rb', line 313 def self.initializer(path=nil) Dir["vendor/*"].each do |dir| $:.unshift File.join(dir,'lib') end require 'rhoconnect' require 'rhoconnect/server' # Bootstrap Rhoconnect system Rhoconnect.bootstrap(path || ENV['PWD']) end |
.store_blob(obj, field_name, blob) ⇒ Object
323 324 325 |
# File 'lib/rhoconnect.rb', line 323 def self.store_blob(obj,field_name,blob) blob[:tempfile].path if blob[:tempfile] end |