Skip to content

Instantly share code, notes, and snippets.

View bioform's full-sized avatar

Andrew Krasnoff bioform

View GitHub Profile
@bioform
bioform / migrations.js
Created March 19, 2013 16:37
Rails like migrations for CompoundJS. Put this code to "/config/initializers/migrations.js"
var migrate = require('migrate')
, join = require('path').join
, fs = require('fs');
module.exports = function(compound) {
var app = compound.app;
var options = {args: []};
/**
* Migration template.
call.dial("+19197414205",{
answer: function(call) {
call.say("Thanks for calling. Press one please")
var key = call.get_keypress()
call.say("You pressed " + key);
}
})
call.dial("+19197414205",{
answer: function(call1) {
log.info("The other side picked up")
call1.say("Thanks for calling")
call.pause(10);
call1.hangup();
},
hangup: function(call1) {
log.info("Call finished.")
}
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure