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-1.3.0 lib/dynflow/web.rb
dynflow-1.2.3 lib/dynflow/web.rb
dynflow-1.2.2 lib/dynflow/web.rb
dynflow-1.2.1 lib/dynflow/web.rb
dynflow-1.2.0 lib/dynflow/web.rb
dynflow-1.2.0.pre1 lib/dynflow/web.rb
dynflow-1.1.6 lib/dynflow/web.rb
dynflow-1.1.5 lib/dynflow/web.rb
dynflow-1.1.4 lib/dynflow/web.rb
dynflow-1.1.3 lib/dynflow/web.rb
dynflow-1.1.2 lib/dynflow/web.rb
dynflow-1.1.1 lib/dynflow/web.rb
dynflow-1.1.0 lib/dynflow/web.rb
dynflow-1.0.5 lib/dynflow/web.rb
dynflow-1.0.4 lib/dynflow/web.rb
dynflow-1.0.3 lib/dynflow/web.rb
dynflow-1.0.2 lib/dynflow/web.rb
dynflow-1.0.1 lib/dynflow/web.rb
dynflow-1.0.0 lib/dynflow/web.rb
dynflow-0.8.37 lib/dynflow/web.rb