Sha256: 4339261950ae9caf87b745ee4b388b84c96a3c7e9dfc890f10c9f2ded366e9f5

Contents?: true

Size: 904 Bytes

Versions: 18

Compression:

Stored size: 904 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.hosts.factory:HostPackage
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for the packages of a single content host
 */
angular.module('Bastion.hosts').factory('HostPackage',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/api/v2/hosts/:id/packages/:action', {id: '@id'}, {
            get: {method: 'GET', isArray: false},
            remove: {method: 'PUT', params: {action: 'remove'}},
            install: {method: 'PUT', params: {action: 'install'}},
            update: {method: 'PUT', params: {action: 'upgrade'}},
            updateAll: {method: 'PUT', params: {action: 'upgrade_all'}},
            autocomplete: {method: 'GET', isArray: true, params: {action: 'auto_complete_search'}},
            applicable: {method: 'GET', params: {action: 'applicable'}}
        });

    }]
);

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js