lib/chake/backend.rb in chake-0.4 vs lib/chake/backend.rb in chake-0.4.1

- old
+ new

@@ -35,10 +35,10 @@ end end end def run_as_root(cmd) - if node.username == 'root' + if node.remote_username == 'root' run(cmd) else run('sudo sh -c "' + cmd + '"') end end