Sha256: 66af9392f302bf9b24c42d391b21ed5091eabab2eb57986ad780eba2e24fdff5

Contents?: true

Size: 696 Bytes

Versions: 10

Compression:

Stored size: 696 Bytes

Contents

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

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

export const getInventoryDocsUrl = () =>
  '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

10 entries across 10 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js