Sha256: 741ddeb588905cb59f58fce53b2f24b6f19237eca6fcccb46f0f2ad37f50fd76

Contents?: true

Size: 400 Bytes

Versions: 650

Compression:

Stored size: 400 Bytes

Contents

register Sinatra::RbbtRESTWorkflow

Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
  add = true

  if workflow =~ /(.*)\*$/
    workflow = $1
    add = :priority
  end

  if workflow =~ /(.*)\-$/
    workflow = $1
    add = false
  end


  next if workflow.empty?
  Workflow.require_workflow workflow
  add_workflow Kernel.const_get(workflow), add
end if Rbbt.etc.workflows.find.exists?

Version data entries

650 entries across 650 versions & 1 rubygems

Version Path
rbbt-util-5.33.18 etc/app.d/workflows.rb
rbbt-util-5.33.17 etc/app.d/workflows.rb
rbbt-util-5.33.16 etc/app.d/workflows.rb
rbbt-util-5.33.15 etc/app.d/workflows.rb
rbbt-util-5.33.14 etc/app.d/workflows.rb
rbbt-util-5.33.13 etc/app.d/workflows.rb
rbbt-util-5.33.12 etc/app.d/workflows.rb
rbbt-util-5.33.11 etc/app.d/workflows.rb
rbbt-util-5.33.9 etc/app.d/workflows.rb
rbbt-util-5.33.8 etc/app.d/workflows.rb
rbbt-util-5.33.7 etc/app.d/workflows.rb
rbbt-util-5.33.6 etc/app.d/workflows.rb
rbbt-util-5.33.5 etc/app.d/workflows.rb
rbbt-util-5.33.4 etc/app.d/workflows.rb
rbbt-util-5.33.3 etc/app.d/workflows.rb
rbbt-util-5.33.2 etc/app.d/workflows.rb
rbbt-util-5.33.1 etc/app.d/workflows.rb
rbbt-util-5.33.0 etc/app.d/workflows.rb
rbbt-util-5.32.30 etc/app.d/workflows.rb
rbbt-util-5.32.28 etc/app.d/workflows.rb