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-5.0.39 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.38 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-4.0.35 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.37 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.36 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.35 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.34 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.33 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.32 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-4.0.32 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.32 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-4.0.31 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.31 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.30 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-4.0.30 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.29 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-4.0.29 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.29 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-3.0.28 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
foreman_rh_cloud-5.0.28 webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js