Sha256: bb9b4ab101a5458d4ff3f470a5869e39203ef29c52baadd6db3a6b7e646523b1

Contents?: true

Size: 853 Bytes

Versions: 6

Compression:

Stored size: 853 Bytes

Contents

require 'omf-common/mobject2'
OMF::Common::Loggable.init_log 'demo'


require 'omf-oml/table'
require 'omf-web/widget/code/code'
require 'omf-web/widget/graph/graph'

Dir.glob("#{File.dirname(__FILE__)}/data_sources/*.rb").each do |fn|
  load fn
end

require 'yaml'
Dir.glob("#{File.dirname(__FILE__)}/*.yaml").each do |fn|
  MObject.info "Loading '#{fn}'"
  h = YAML.load_file(fn)
  if w = h['widget']
    OMF::Web.register_widget w
  elsif t = h['tab']
    OMF::Web.register_tab t
    OMF::Web.use_tab t['id']
  else
    MObject.error "Don't know what to do with '#{fn}'"
  end
end


# Configure the web server
#
opts = {
  :page_title => 'Loading Analysis',
  :use_tabs => [:graph]
  # :tabs => {
    # :foo => {:name => 'Foo', :order => 1, :class => Foo},
    # :goo => {:name => 'Goo', :order => 3}
  # }
}
require 'omf_web'
OMF::Web.start(opts)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omf_web-0.9.6 example/NOT_WORKING/frisbee/viz_server.rb
omf_web-0.9.5 example/NOT_WORKING/frisbee/viz_server.rb
omf_web-0.9.4 example/NOT_WORKING/frisbee/viz_server.rb
omf_web-0.9.3 example/NOT_WORKING/frisbee/viz_server.rb
omf_web-0.9.1 example/frisbee/viz_server.rb
omf_web-0.9 example/frisbee/viz_server.rb