SoftLayer Object Store plugin for gulp
First, install gulp-softlayer-storage
as a development dependency:
npm install --save-dev gulp-softlayer-storage
Setup your softlayer.json file
{
"user": "SL12345-1:SL12345",
"apiKey": "68e656b251e67e8358bef8483ab0d51c6619f3e7a1a9f0e75838d41ff368f728",
"container": "dev.example.com",
"authEndpoint": "https://tor01.objectstorage.softlayer.net/auth/v1.0/"
}
Then, use it in your gulpfile.js
:
var sl_obj = require("gulp-softlayer-storage");
sl_creds = JSON.parse(fs.readFileSync('./softlayer.json'));
gulp.src('./dist/**')
.pipe(sl_obj(sl_creds));
This is based on the gulp-s3 gulp plugin