Class: Factor::Commands::Workflow
- Defined in:
- lib/commands/workflows.rb
Overview
Workflow is a Command to start the factor runtime from the CLI
Constant Summary
Constants inherited from Command
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize ⇒ Workflow
constructor
A new instance of Workflow.
- #server(_args, options) ⇒ Object
Methods inherited from Command
#error, #exception, #info, #load_config, #success, #warn
Constructor Details
#initialize ⇒ Workflow
Returns a new instance of Workflow.
12 13 14 |
# File 'lib/commands/workflows.rb', line 12 def initialize @workflows = {} end |
Instance Method Details
#server(_args, options) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/commands/workflows.rb', line 16 def server(_args, ) config_settings = {} config_settings[:credentials] = .credentials config_settings[:connectors] = .connectors workflow_filename = File.(.path || '.') @destination_stream = File.new(.log, 'w+') if .log load_config(config_settings) load_all_workflows(workflow_filename) block_until_interupt 'status' => 'info', 'message' => 'Good bye!' end |