Sha256: 9dbbd9009e33904b33ea7df1b58b445356de05a84bef3703aa4d459083f0c124

Contents?: true

Size: 604 Bytes

Versions: 57

Compression:

Stored size: 604 Bytes

Contents

require 'dynflow'
require 'pp'
require 'sinatra/base'
require 'yaml'

module Dynflow
  module Web

    def self.setup(&block)
      console = Sinatra.new(Web::Console) { instance_exec(&block)}
      Rack::Builder.app do
        run Rack::URLMap.new('/'        => console)
      end
    end

    def self.web_dir(sub_dir)
      web_dir = File.join(File.expand_path('../../../web', __FILE__))
      File.join(web_dir, sub_dir)
    end

    require 'dynflow/web/filtering_helpers'
    require 'dynflow/web/world_helpers'
    require 'dynflow/web/console_helpers'
    require 'dynflow/web/console'
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
dynflow-0.8.16 lib/dynflow/web.rb
dynflow-0.8.15 lib/dynflow/web.rb
dynflow-0.8.14 lib/dynflow/web.rb
dynflow-0.8.13 lib/dynflow/web.rb
dynflow-0.8.12 lib/dynflow/web.rb
dynflow-0.8.11 lib/dynflow/web.rb
dynflow-0.8.10 lib/dynflow/web.rb
dynflow-0.8.9 lib/dynflow/web.rb
dynflow-0.8.8 lib/dynflow/web.rb
dynflow-0.8.7 lib/dynflow/web.rb
dynflow-0.8.6 lib/dynflow/web.rb
dynflow-0.8.5 lib/dynflow/web.rb
dynflow-0.8.4 lib/dynflow/web.rb
dynflow-0.8.3 lib/dynflow/web.rb
dynflow-0.8.2 lib/dynflow/web.rb
dynflow-0.8.1 lib/dynflow/web.rb
dynflow-0.8.0 lib/dynflow/web.rb