RedmineRake » History » Revision 5
« Previous |
Revision 5/13
(diff)
| Next »
Trevor Jones, 2013-04-23 20:58
adding a dump of rake -T in 2.3
Rake tasks¶
WIP
- Table of contents
- Rake tasks
- rake redmine:attachments:prune
- rake about
- rake assets:clean
- rake assets:precompile
- rake ci
- rake ci:build
- rake ci:setup
- rake ci:teardown
- rake config/database.yml
- rake config/initializers/secret_token.rb
- rake db:create
- rake db:decrypt
- rake db:drop
- rake db:encrypt
- rake db:fixtures:load
- rake db:migrate
- rake db:migrate:status
- rake db:rollback
- rake db:schema:dump
- rake db:schema:load
- rake db:seed
- rake db:setup
- rake db:structure:dump
- rake db:version
- rake doc:app
- rake extract_fixtures
- rake generate_secret_token
- rake locales
- rake locales:add_key
- rake locales:check_interpolation
- rake locales:check_parsing_by_psych
- rake locales:dup
- rake locales:remove_key
- rake locales:update
- rake log:clear
- rake middleware
- rake notes
- rake notes:custom
- rake rails:template
- rake rails:update
- rake redmine:attachments:move_to_subdirectories
- rake redmine:attachments:prune
- rake redmine:email:read
- rake redmine:email:receive_imap
- rake redmine:email:receive_pop3
- rake redmine:email:test[login]
- rake redmine:fetch_changesets
- rake redmine:load_default_data
- rake redmine:migrate_from_mantis
- rake redmine:migrate_from_trac
- rake redmine:permissions
- rake redmine:plugins
- rake redmine:plugins:assets
- rake redmine:plugins:migrate
- rake redmine:plugins:test
- rake redmine:plugins:test:functionals
- rake redmine:plugins:test:integration
- rake redmine:plugins:test:units
- rake redmine:send_reminders
- rake redmine:tokens:prune
- rake redmine:watchers:prune
- rake routes
- rake secret
- rake stats
- rake test
- rake test:coverage
- rake test:rdm_routing
- rake test:recent
- rake test:scm
- rake test:scm:functionals
- rake test:scm:setup:all
- rake test:scm:setup:bazaar
- rake test:scm:setup:create_dir
- rake test:scm:setup:cvs
- rake test:scm:setup:darcs
- rake test:scm:setup:filesystem
- rake test:scm:setup:git
- rake test:scm:setup:mercurial
- rake test:scm:setup:subversion
- rake test:scm:units
- rake test:scm:update
- rake test:single
- rake test:ui
- rake test:uncommitted
- rake time:zones:all
- rake tmp:clear
- rake tmp:create
Redmine defines a set of Rake tasks for use in maintenance operations.
rake redmine:attachments:prune
¶
Available in version 2.3.0.
When a user attaches a file to an issue, a wiki page, etc., the file is immediately uploaded and is attached later on after the form has been submitted.
This task removes uploaded files left unattached (meaning the form has never been submitted) after one day.
rake about
¶
List versions of all Rails frameworks and the environment
Available in versions 2.3.0
rake assets:clean
¶
Remove compiled assets
Available in versions 2.3.0
rake assets:precompile
¶
Compile all the assets named in config.assets.precompile
Available in versions 2.3.0
rake ci
¶
Run the Continous Integration tests for Redmine
Available in versions 2.3.0
rake ci:build
¶
Build Redmine
Available in versions 2.3.0
rake ci:setup
¶
Setup Redmine for a new build
Available in versions 2.3.0
rake ci:teardown
¶
Finish the build
Available in versions 2.3.0
rake config/database.yml
¶
Creates database.yml for the CI server
Available in versions 2.3.0
rake config/initializers/secret_token.rb
¶
Generates a secret token for the application.
Available in versions 2.3.0
rake db:create
¶
Create the database from DATABASE_URL or config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)
Available in versions 2.3.0
rake db:decrypt
¶
Decrypts SCM and LDAP passwords in the database.
Available in versions 2.3.0
rake db:drop
¶
Drops the database using DATABASE_URL or the current Rails.env (use db:drop:all to drop all databases)
Available in versions 2.3.0
rake db:encrypt
¶
Encrypts SCM and LDAP passwords in the database.
Available in versions 2.3.0
rake db:fixtures:load
¶
Load fixtures into the current environment's database.
Available in versions 2.3.0
rake db:migrate
¶
Migrate the database (options: VERSION=x, VERBOSE=false).
Available in versions 2.3.0
rake db:migrate:status
¶
Display status of migrations
Available in versions 2.3.0
rake db:rollback
¶
Rolls the schema back to the previous version (specify steps w/ STEP=n).
Available in versions 2.3.0
rake db:schema:dump
¶
Create a db/schema.rb file that can be portably used against any DB supported by AR
Available in versions 2.3.0
rake db:schema:load
¶
Load a schema.rb file into the database
Available in versions 2.3.0
rake db:seed
¶
Load the seed data from db/seeds.rb
Available in versions 2.3.0
rake db:setup
¶
Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first)
Available in versions 2.3.0
rake db:structure:dump
¶
Dump the database structure to db/structure.sql. Specify another file with DB_STRUCTURE=db/my_structure.sql
Available in versions 2.3.0
rake db:version
¶
Retrieves the current schema version number
Available in versions 2.3.0
rake doc:app
¶
Generate docs for the app -- also available doc:rails, doc:guides, doc:plugins (options: TEMPLATE=/rdoc-template.rb, TITLE="Custom Title")
Available in versions 2.3.0
rake extract_fixtures
¶
Create YAML test fixtures from data in an existing database.
Available in versions 2.3.0
rake generate_secret_token
¶
Generates a secret token for the application.
Available in versions 2.3.0
rake locales
¶
Updates and checks locales against en.yml
Available in versions 2.3.0
rake locales:add_key
¶
Adds a new top-level translation string to all locale file (only works for childless keys, probably doesn't work on windows, doesn't check for duplicates).
Available in versions 2.3.0
rake locales:check_interpolation
¶
Checks interpolation arguments in locals against en.yml
Available in versions 2.3.0
rake locales:check_parsing_by_psych
¶
Check parsing yaml by psych library on Ruby 1.9.
Available in versions 2.3.0
rake locales:dup
¶
Duplicates a key.
Available in versions 2.3.0
rake locales:remove_key
¶
Removes a translation string from all locale file (only works for top-level childless non-multiline keys, probably doesn't work on windows).
Available in versions 2.3.0
rake locales:update
¶
Updates language files based on en.yml content (only works for new top level keys).
Available in versions 2.3.0
rake log:clear
¶
Truncates all *.log files in log/ to zero bytes
Available in versions 2.3.0
rake middleware
¶
Prints out your Rack middleware stack
Available in versions 2.3.0
rake notes
¶
Enumerate all annotations (use notes:optimize, :fixme, :todo for focus)
Available in versions 2.3.0
rake notes:custom
¶
Enumerate a custom annotation, specify with ANNOTATION=CUSTOM
Available in versions 2.3.0
rake rails:template
¶
Applies the template supplied by LOCATION=(/path/to/template) or URL
Available in versions 2.3.0
rake rails:update
¶
Update configs and some other initially generated files (or use just update:configs, update:scripts, or update:application_controller)
Available in versions 2.3.0
rake redmine:attachments:move_to_subdirectories
¶
Moves attachments stored at the root of the file directory (ie.
Available in versions 2.3.0
rake redmine:attachments:prune
¶
Removes uploaded files left unattached after one day.
Available in versions 2.3.0
rake redmine:email:read
¶
Read an email from standard input.
Available in versions 2.3.0
rake redmine:email:receive_imap
¶
Read emails from an IMAP server.
Available in versions 2.3.0
rake redmine:email:receive_pop3
¶
Read emails from an POP3 server.
Available in versions 2.3.0
rake redmine:email:test[login]
¶
Send a test email to the user with the provided login name
Available in versions 2.3.0
rake redmine:fetch_changesets
¶
Fetch changesets from the repositories
Available in versions 2.3.0
rake redmine:load_default_data
¶
Load Redmine default configuration data.
Available in versions 2.3.0
rake redmine:migrate_from_mantis
¶
Mantis migration script
Available in versions 2.3.0
rake redmine:migrate_from_trac
¶
Trac migration script
Available in versions 2.3.0
rake redmine:permissions
¶
List all permissions and the actions registered with them
Available in versions 2.3.0
rake redmine:plugins
¶
Migrates and copies plugins assets.
Available in versions 2.3.0
rake redmine:plugins:assets
¶
Copies plugins assets into the public directory.
Available in versions 2.3.0
rake redmine:plugins:migrate
¶
Migrates installed plugins.
Available in versions 2.3.0
rake redmine:plugins:test
¶
Runs the plugins tests.
Available in versions 2.3.0
rake redmine:plugins:test:functionals
¶
Run tests for {:functionals=>"db:test:prepare"}
Available in versions 2.3.0
rake redmine:plugins:test:integration
¶
Run tests for {:integration=>"db:test:prepare"}
Available in versions 2.3.0
rake redmine:plugins:test:units
¶
Run tests for {:units=>"db:test:prepare"}
Available in versions 2.3.0
rake redmine:send_reminders
¶
Send reminders about issues due in the next days.
Available in versions 2.3.0
rake redmine:tokens:prune
¶
Removes expired tokens.
Available in versions 2.3.0
rake redmine:watchers:prune
¶
Removes watchers from what they can no longer view.
Available in versions 2.3.0
rake routes
¶
Print out all defined routes in match order, with names.
Available in versions 2.3.0
rake secret
¶
Generate a cryptographically secure secret key (this is typically used to generate a secret for cookie sessions).
Available in versions 2.3.0
rake stats
¶
Report code statistics (KLOCs, etc) from the application
Available in versions 2.3.0
rake test
¶
Runs test:units, test:functionals, test:integration together (also available: test:benchmark, test:profile, test:plugins)
Available in versions 2.3.0
rake test:coverage
¶
Measures test coverage
Available in versions 2.3.0
rake test:rdm_routing
¶
Run tests for rdm_routing / Run the routing tests
Available in versions 2.3.0
rake test:recent
¶
Run tests for {:recent=>"test:prepare"} / Test recent changes
Available in versions 2.3.0
rake test:scm
¶
Run unit and functional scm tests
Available in versions 2.3.0
rake test:scm:functionals
¶
Run tests for {:functionals=>"db:test:prepare"} / Run the scm functional tests
Available in versions 2.3.0
rake test:scm:setup:all
¶
Creates all test repositories
Available in versions 2.3.0
rake test:scm:setup:bazaar
¶
Creates a test bazaar repository
Available in versions 2.3.0
rake test:scm:setup:create_dir
¶
Creates directory for test repositories
Available in versions 2.3.0
rake test:scm:setup:cvs
¶
Creates a test cvs repository
Available in versions 2.3.0
rake test:scm:setup:darcs
¶
Creates a test darcs repository
Available in versions 2.3.0
rake test:scm:setup:filesystem
¶
Creates a test filesystem repository
Available in versions 2.3.0
rake test:scm:setup:git
¶
Creates a test git repository
Available in versions 2.3.0
rake test:scm:setup:mercurial
¶
Creates a test mercurial repository
Available in versions 2.3.0
rake test:scm:setup:subversion
¶
Creates a test subversion repository
Available in versions 2.3.0
rake test:scm:units
¶
Run tests for {:units=>"db:test:prepare"} / Run the scm unit tests
Available in versions 2.3.0
rake test:scm:update
¶
Updates installed test repositories
Available in versions 2.3.0
rake test:single
¶
Run tests for {:single=>"test:prepare"}
Available in versions 2.3.0
rake test:ui
¶
Run tests for {:ui=>"db:test:prepare"} / Run the UI tests with Capybara (PhantomJS listening on port 4444 is required)
Available in versions 2.3.0
rake test:uncommitted
¶
Run tests for {:uncommitted=>"test:prepare"} / Test changes since last checkin (only Subversion and Git)
Available in versions 2.3.0
rake time:zones:all
¶
Displays all time zones, also available: time:zones:us, time:zones:local -- filter with OFFSET parameter, e.g., OFFSET=-6
Available in versions 2.3.0
rake tmp:clear
¶
Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)
Available in versions 2.3.0
rake tmp:create
¶
Creates tmp directories for sessions, cache, sockets, and pids
Available in versions 2.3.0
Updated by Trevor Jones over 11 years ago · 5 revisions