class Djin::Interpreter::BaseCommandBuilder
Public Class Methods
call(*options)
click to toggle source
# File lib/djin/interpreter/base_command_builder.rb, line 6 def self.call(*options) new.call(*options) end
Private Instance Methods
build_run_params(run_params)
click to toggle source
# File lib/djin/interpreter/base_command_builder.rb, line 12 def build_run_params(run_params) run_command = run_params if run_params.is_a?(Hash) run_command = run_params['commands'] run_options = run_params['options'] end # TODO: Remove empty values run_command = run_command.join(' && ') if run_command.is_a?(Array) [run_command, run_options] end