Skip to content

Commit

Permalink
Gem Build and Push
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Richard committed Feb 21, 2016
1 parent 7f067e1 commit 915fdf1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gembuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

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

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

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

process.exit();

0 comments on commit 915fdf1

Please sign in to comment.