Method: OpenC3::OperatorProcess#cmd_line
- Defined in:
- lib/openc3/operators/operator.rb
#cmd_line ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/openc3/operators/operator.rb', line 105 def cmd_line # In ProcessManager processes, the process_definition is the actual thing run # e.g. OpenC3::ProcessManager.instance.spawn(["ruby", "/openc3/bin/openc3cli", "load", ...]) # However, if the MicroserviceOperator is spawning the proceses it sets # process_definition = ["ruby", "plugin_microservice.rb"] # which then calls exec(*@config["cmd"]) to actually run # So check if the @config['cmd'] is defined to give the user more info in the log cmd_line_text = @process_definition.join(' ') if @config && @config['cmd'] cmd_line_text = @config['cmd'].join(' ') end return cmd_line_text end |