Skip to content

Commit

Permalink
Rebranding, josi is always written all lowercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
thatismatt committed Jun 3, 2010
1 parent 1d786fc commit 63c5192
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/josi
Expand Up @@ -28,12 +28,12 @@ var matchingTasks = task ? tasks.getAllMatching(task) : [];
if (matchingTasks.length == 1) {
var matchedTask = matchingTasks[0];
if (!utilities.cwdContainsApp() && matchedTask.appOnly) {
sys.puts('ERROR: can only execute the task "' + matchedTask.name + '" in a directory containing a Josi app.');
sys.puts('ERROR: can only execute the task "' + matchedTask.name + '" in a directory containing a josi app.');
} else {
matchedTask.execute(opts, tasks.tasks);
}
} else if (matchingTasks.length > 1) {
sys.puts('"' + task + '" is not a Josi command, did you mean one of these?');
sys.puts('"' + task + '" is not a josi command, did you mean one of these?');
matchingTasks.forEach(function(t) {
sys.puts('\t' + t.name);
});
Expand Down
2 changes: 2 additions & 0 deletions examples/hello/controllers/home.js
Expand Up @@ -2,5 +2,7 @@ var actionresults = require('josi/actionresults');
var redirect = actionresults.redirect;
var view = actionresults.view;

a.fail();

this.index = function() { return view({ title: 'A Title', name: 'Kate' }); };
this.redir = function() { return redirect('/product/details/1'); }
2 changes: 1 addition & 1 deletion lib/josi/package.js
@@ -1,3 +1,3 @@
this.name = 'Josi';
this.name = 'josi';
this.version = '0.1';
this.author = 'Matt Lee - @thatismatt';
8 changes: 4 additions & 4 deletions lib/josi/tasks/create.js
Expand Up @@ -9,13 +9,13 @@ this.task = {
execute: function(opts) {
var appName = opts.name;
if (utilities.fileOrDirectoryExists(appName)) {
sys.puts('Can\'t create a new Josi app with the name "' + appName + '",' +
sys.puts('Can\'t create a new josi app with the name "' + appName + '",' +
' as a file or directory with that name already exists.');
return;
}
sys.puts('Creating Josi app...');
sys.puts('Creating app...');
createApp(appName);
sys.puts('Josi app created. Type "cd ' + appName + '; josi run" to start the web server.');
sys.puts('App created. Type "cd ' + appName + '; josi run" to start the web server.');
},
}

Expand Down Expand Up @@ -59,7 +59,7 @@ var createController = function(appName, controllerName) {
'',
'this.index = function() {',
' return view({',
' title: \'' + appName + ' - A Josi App\',',
' title: \'' + appName + ' - a <a href="http://thatismatt.github.com/josi/">josi</a> app\',',
' name: \'' + appName + '\'',
' });',
'};', ''
Expand Down
2 changes: 1 addition & 1 deletion lib/josi/tasks/run.js
Expand Up @@ -10,7 +10,7 @@ this.task = {
var port = parseInt(opts.port) || 8080;
var server = new Server(process.cwd());
server.listen(port);
sys.puts('Josi server started on http://localhost:' + port + '/.');
sys.puts('josi server started on http://localhost:' + port + '/.');
sys.puts('ctrl-c to stop.');
}
};

0 comments on commit 63c5192

Please sign in to comment.