Sha256: e2b4a9b70039babb8b8a60c5e29a67d2a4b17899a6d4d34640b1ecff88cff5b8

Contents?: true

Size: 453 Bytes

Versions: 48

Compression:

Stored size: 453 Bytes

Contents

/* eslint-disable camelcase */
export const generateDefaultDescription = ({
  description_format,
  advancedInputs,
  inputs,
  name,
}) => {
  if (description_format) return description_format;
  const allInputs = [...advancedInputs, ...inputs];
  if (!allInputs.length) return name;
  const inputsString = allInputs
    .map(({ name: inputname }) => `${inputname}="%{${inputname}}"`)
    .join(' ');
  return `${name} with inputs ${inputsString}`;
};

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
foreman_remote_execution-9.1.0 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-8.2.1 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-8.2.0 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-9.0.1 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-9.0.0 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-8.1.2 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-8.1.1 webpack/JobWizard/JobWizardHelpers.js
foreman_remote_execution-8.1.0 webpack/JobWizard/JobWizardHelpers.js