lib/rush/dir.rb in rush-0.5 vs lib/rush/dir.rb in rush-0.5.1

- old
+ new

@@ -44,10 +44,12 @@ find_by_glob(key) else find_by_name(key) end end + # Slashes work as well, e.g. dir/'subdir/file' + alias_method :/, :[] def find_by_name(name) # :nodoc: Rush::Entry.factory("#{full_path}/#{name}", box) end @@ -118,10 +120,10 @@ end end # 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 + box.bash "cd #{quoted_path} && #{command}", options end # Destroy all of the contents of the directory, leaving it fresh and clean. def purge connection.purge full_path