File: .gembuild.js

package info (click to toggle)
compass-singularitygs-plugin 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 592 kB
  • ctags: 15
  • sloc: ruby: 70; makefile: 29; sh: 4
file content (22 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';

var exec = require('child_process').execSync,
    version = require('./package.json').version;

var commands = [
  'gem build singularitygs.gemspec',
  `gem push singularitygs-${version}.gem`,
  `rm singularitygs-${version}.gem`
];

commands.forEach(command => {
  try {
    exec(command);
  }
  catch (e) {
    console.error(e.message);
    process.exit(1);
  }
});

process.exit();