Sha256: 21703c9ea37cebd23213d9eac29e06d34f624ddae7bbc230bad919703988eef6

Contents?: true

Size: 795 Bytes

Versions: 73

Compression:

Stored size: 795 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

73 entries across 73 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.13.1 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-2.0.13 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js