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.44.1 etc/app.d/workflows.rb
rbbt-util-5.43.0 etc/app.d/workflows.rb
rbbt-util-5.42.0 etc/app.d/workflows.rb
rbbt-util-5.41.1 etc/app.d/workflows.rb
rbbt-util-5.41.0 etc/app.d/workflows.rb
rbbt-util-5.40.5 etc/app.d/workflows.rb
rbbt-util-5.40.4 etc/app.d/workflows.rb
rbbt-util-5.40.3 etc/app.d/workflows.rb
rbbt-util-5.40.0 etc/app.d/workflows.rb
rbbt-util-5.39.0 etc/app.d/workflows.rb
rbbt-util-5.38.1 etc/app.d/workflows.rb
rbbt-util-5.38.0 etc/app.d/workflows.rb
rbbt-util-5.37.16 etc/app.d/workflows.rb
rbbt-util-5.37.15 etc/app.d/workflows.rb
rbbt-util-5.37.14 etc/app.d/workflows.rb
rbbt-util-5.37.13 etc/app.d/workflows.rb
rbbt-util-5.37.12 etc/app.d/workflows.rb
rbbt-util-5.37.11 etc/app.d/workflows.rb
rbbt-util-5.37.10 etc/app.d/workflows.rb
rbbt-util-5.37.9 etc/app.d/workflows.rb