lib/chake/backend.rb in chake-0.4.3 vs lib/chake/backend.rb in chake-0.5
- old
+ new
@@ -34,9 +34,13 @@
raise CommandFailed.new([node.hostname, 'FAILED with exit status %d' % status].join(': '))
end
end
end
+ def run_shell
+ system(*shell_command)
+ end
+
def run_as_root(cmd)
if node.remote_username == 'root'
run(cmd)
else
run('sudo ' + cmd)