mirror of
https://github.com/fleetdm/fleet
synced 2026-05-10 02:30:56 +00:00
Related to: #20296 Changes: - Added `ee/bulk-operations-dashboard`, a Sails.js app that lets users manage configuration profiles and scripts across multiple teams on a Fleet instance. - Added a Github workflow to deploy the app to Heroku - Added a Github workflow to test changes to the bulk operations dashboard.
60 lines
1.6 KiB
JavaScript
60 lines
1.6 KiB
JavaScript
/**
|
|
* UndeployedScript.js
|
|
*
|
|
* @description :: A model definition represents a database table/collection.
|
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
attributes: {
|
|
|
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
|
name: {
|
|
type: 'string',
|
|
required: true,
|
|
description: 'The name of the script on the Fleet instance.',
|
|
},
|
|
|
|
platform: {
|
|
type: 'string',
|
|
description: 'The type of operating system this script is for.',
|
|
required: true,
|
|
isIn: [
|
|
'macOS & Linux',
|
|
'Windows'
|
|
],
|
|
},
|
|
|
|
scriptType: {
|
|
type: 'string',
|
|
description: 'The file extension of the script.',
|
|
required: true,
|
|
isIn: [
|
|
'.sh',
|
|
'.ps1',
|
|
],
|
|
},
|
|
|
|
scriptContents: {
|
|
type: 'string',
|
|
required: true,
|
|
description: 'The contents of the script stored as a string.',
|
|
},
|
|
|
|
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
|
|
|
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
|
|
|
},
|
|
|
|
};
|
|
|