Permalink
Browse files

changed author name in package.json, update README to use shell.upload

  • Loading branch information...
1 parent b1a2851 commit 344612a23938a064516c9fd7d6cb2c58ea94e2a5 @mikkelfj mikkelfj committed May 1, 2011
Showing with 5 additions and 12 deletions.
  1. +4 −11 README.md
  2. +1 −1 package.json
View
@@ -72,19 +72,12 @@ and run on multiples sites:
this.shell.run(scripts, this.async());
});
- put = function(from, to, cb) {
- var host = "";
- if(this.site && this.site.host)
- host = this.site.host + ":";
- shell().run("rsync -r " + from + " " + host + to, cb);
- }
-
jobs.add('update', 'app', function() {
env = sites.get('local');
// run two concurrent rsyncs, but don't run next job until
- // both rsyncs are done.
- put(env.scripts, "scripts", this.async());
- put(env.www, "www", this.async());
+ // both rsyncs are done (this.async() adds refcount)
+ this.shell.upload(env.scripts, "scripts", this.async());
+ this.shell.upload(env.www, "www", this.async());
});
jobs.add('prepare', 'local', function() {
@@ -98,7 +91,7 @@ and run on multiples sites:
// but concurrently for all sites
// ( in this example it will spawn 6 concurrent rsync commands )
this.run(['update', 'snapshot', 'deploy', 'snapshot']);
- }
+ });
In the above script jobs execute in the default schedule
`site-sequential` meaning that jobs on different sites executes in
View
@@ -2,7 +2,7 @@
"name": "polyshell",
"main": "lib/index.js",
"version": "0.1.1",
- "author": "Mikkel Fahnøe Jørgensen <mikkel@dvide.com>",
+ "author": "MikkelFJ <mikkel@dvide.com>",
"description": "distributed shell job control with role based configuration",
"engines": {
"node": ">=0.4.0"

0 comments on commit 344612a

Please sign in to comment.