slobber

Use Scriptrunner to promote a file to a database

Usage no npm install needed!

<script type="module">
  import slobber from 'https://cdn.skypack.dev/slobber';
</script>

README

Slobber

Slobber is a utility that runs a ScriptRunner build and run of a file against a database.

Usage

var slobber = require('slobber');
var slobInstance = slobber.getInstance({
  "jdbc": "jdbc:oracle:thin:@localhost:1521:xe",
  "user": "promotemgr",
  "password": "pass",
  "jarLocation": "path/to/ScriptRunner.jar",
  "codeSourcePath":"path/to/scriptrunner/build/dir",
  "builderConfigLocation": "builder.cfg"
});

slobInstance('path/to/file',function(slobResult){
 console.log(slobResult.result);
});