Permalink
Browse files

[minor] Update examples/*.js

  • Loading branch information...
1 parent aa8f012 commit dc387f1f1104e8ff13178f562cf8a8276c30f89c @indexzero indexzero committed Sep 23, 2013
Showing with 30 additions and 23 deletions.
  1. +30 −23 example/bcrypt.js
View
@@ -1,30 +1,37 @@
-var tmp = require('tmp');
-var assert = require('assert');
+/*
+ * bcrypt.js: Example that builds bcrypt.
+ *
+ * (C) 2012 Nodejitsu Inc.
+ *
+ */
-var ModuleSmith = require('../');
-var buildbot = ModuleSmith.createModuleSmith();
+var assert = require('assert'),
+ tmp = require('tmp'),
+ moduleSmith = require('../');
+
+var buildbot = moduleSmith.createModuleSmith();
//
// Grab a temporary directory to build in
//
tmp.dir(function (err, tmpdir) {
- assert.ifError(err);
- //
- // Start our build
- //
- buildbot.build({
- repository: {
- type: 'git',
- url: 'git@github.com:bmeck/bcrypt-example.git'
- },
- directories: {
- rootdir: tmpdir
- }
- }, function (err, stream) {
- assert.ifError(err);
- //
- // Pipe out the data to stdio
- //
- stream.pipe(process.stdout);
- });
+ assert.ifError(err);
+ //
+ // Start our build
+ //
+ buildbot.build({
+ repository: {
+ type: 'git',
+ url: 'git@github.com:bmeck/bcrypt-example.git'
+ },
+ directories: {
+ root: tmpdir
+ }
+ }, function (err, stream) {
+ assert.ifError(err);
+ //
+ // Pipe out the data to stdio
+ //
+ stream.pipe(process.stdout);
+ });
});

0 comments on commit dc387f1

Please sign in to comment.