Skip to content

Commit

Permalink
update guides and descriptions; alphabetize
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Apr 25, 2023
1 parent d52bb54 commit ef90834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions guides/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,11 @@ The `Rails.root/tmp` directory is, like the *nix /tmp directory, the holding pla
The `tmp:` namespaced commands will help you clear and create the `Rails.root/tmp` directory:
* `bin/rails tmp:cache:clear` clears `tmp/cache`.
* `bin/rails tmp:sockets:clear` clears `tmp/sockets`.
* `bin/rails tmp:screenshots:clear` clears `tmp/screenshots`.
* `bin/rails tmp:clear` clears all cache, sockets, and screenshot files.
* `bin/rails tmp:create` creates tmp directories for cache, sockets, and pids.
* `bin/rails tmp:sockets:clear` clears `tmp/sockets`.
* `bin/rails tmp:storage:clear` clears `tmp/storage`.
* `bin/rails tmp:clear` clears all cache, screenshot, sockets, and storage files.
* `bin/rails tmp:create` creates tmp directories for cache, pids, screenshots, sockets, and storage.
### Miscellaneous
Expand Down
6 changes: 3 additions & 3 deletions railties/lib/rails/tasks/tmp.rake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

namespace :tmp do
desc "Clear cache, socket and screenshot files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear, tmp:screenshots:clear)"
task clear: ["tmp:cache:clear", "tmp:sockets:clear", "tmp:screenshots:clear", "tmp:storage:clear"]
desc "Clear cache, screenshot, socket, and storage files from tmp/ (narrow w/ tmp:cache:clear, tmp:screenshots:clear, tmp:sockets:clear, tmp:storage:clear)"
task clear: ["tmp:cache:clear", "tmp:screenshots:clear", "tmp:sockets:clear", "tmp:storage:clear"]

tmp_dirs = [ "tmp/cache/assets",
"tmp/pids",
Expand All @@ -12,7 +12,7 @@ namespace :tmp do

tmp_dirs.each { |d| directory d }

desc "Create tmp directories for cache, sockets, and pids"
desc "Create tmp directories for cache, pids, screenshots, sockets, and storage"
task create: tmp_dirs

namespace :cache do
Expand Down

0 comments on commit ef90834

Please sign in to comment.