bin/run_workflow.rb in rbbt-util-4.0.1 vs bin/run_workflow.rb in rbbt-util-4.0.2

- old
+ new

@@ -78,11 +78,11 @@ end job_options_cleaned end -options = SOPT.get "-t--task*:-l--log*:-h--help:-n--name*:-cl--clean:-rcl-recursive_clean:-pn--printname:-srv--server" +options = SOPT.get "-t--task*:-l--log*:-h--help:-n--name*:-cl--clean:-rcl-recursive_clean:-pn--printname:-srv--server:-p--port*" workflow = ARGV.first if options[:server] require 'rbbt/util/log' @@ -93,9 +93,13 @@ Workflow.require_workflow workflow WorkflowREST.add_workflows Workflow.workflows.last WorkflowREST.setup + + Sinatra::Application.port = options[:port] || 4567 + Sinatra::Application.run = true + else # Set log, fork, clean, recursive_clean and help Log.severity = options[:log].to_i if options.include? :log help = !!options.delete(:help)