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.32.27 etc/app.d/workflows.rb
rbbt-util-5.32.26 etc/app.d/workflows.rb
rbbt-util-5.32.25 etc/app.d/workflows.rb
rbbt-util-5.32.24 etc/app.d/workflows.rb
rbbt-util-5.32.23 etc/app.d/workflows.rb
rbbt-util-5.32.22 etc/app.d/workflows.rb
rbbt-util-5.32.21 etc/app.d/workflows.rb
rbbt-util-5.32.20 etc/app.d/workflows.rb
rbbt-util-5.32.18 etc/app.d/workflows.rb
rbbt-util-5.32.17 etc/app.d/workflows.rb
rbbt-util-5.32.16 etc/app.d/workflows.rb
rbbt-util-5.32.15 etc/app.d/workflows.rb
rbbt-util-5.32.13 etc/app.d/workflows.rb
rbbt-util-5.32.12 etc/app.d/workflows.rb
rbbt-util-5.32.11 etc/app.d/workflows.rb
rbbt-util-5.32.10 etc/app.d/workflows.rb
rbbt-util-5.32.9 etc/app.d/workflows.rb
rbbt-util-5.32.7 etc/app.d/workflows.rb
rbbt-util-5.32.6 etc/app.d/workflows.rb
rbbt-util-5.32.5 etc/app.d/workflows.rb