Sha256: d6455b245af8863bf9eaf2559e2b353aef0b68c8a43735637c992d96d023e439

Contents?: true

Size: 794 Bytes

Versions: 9

Compression:

Stored size: 794 Bytes

Contents

import URI from 'urijs';
import { foremanUrl } from '../ForemanRhCloudHelpers';

export const inventoryUrl = path =>
  foremanUrl(`/foreman_inventory_upload/${path}`);

export const getInventoryDocsUrl = () =>
  foremanUrl(
    `/links/manual/?root_url=${URI.encode(
      'https://access.redhat.com/products/subscription-central'
    )}`
  );

export const getActionsHistoryUrl = () =>
  foremanUrl(
    '/foreman_tasks/tasks?search=action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateReportJob+or+action++%3D++ForemanInventoryUpload%3A%3AAsync%3A%3AGenerateAllReportsJob&page=1'
  );

export const isExitCodeLoading = exitCode => {
  const exitCodeLC = exitCode.toLowerCase();
  return (
    exitCodeLC.indexOf('running') !== -1 ||
    exitCodeLC.indexOf('restarting') !== -1
  );
};

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-8.0.50 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-8.0.49 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-8.0.48 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js