lib/rush/dir.rb in rush-0.2 vs lib/rush/dir.rb in rush-0.3

- old
+ new

@@ -116,12 +116,12 @@ files.select do |file| !file.hidden? end end - # Run a bash command starting in this directory. - def bash(command) - box.bash "cd #{full_path} && #{command}" + # Run a bash command starting in this directory. Options are the same as Rush::Box#bash. + def bash(command, options={}) + box.bash "cd #{full_path} && #{command}", options end # Destroy all of the contents of the directory, leaving it fresh and clean. def purge connection.purge full_path