1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/commands
Wojciech Wnętrzak 7a8728a039
Add CLI to manage encrypted files/configs.
To edit/show encrypted file:

```
bin/rails encrypted:edit config/staging_tokens.yml.enc
bin/rails encrypted:edit config/staging_tokens.yml.enc --key config/staging.key
bin/rails encrypted:show config/staging_tokens.yml.enc
```

Also provides a backing Rails.application.encrypted API for Ruby access:

```ruby
Rails.application.encrypted("config/staging_tokens.yml.enc").read
Rails.application.encrypted("config/staging_tokens.yml.enc").config
Rails.application.encrypted("config/staging_tokens.yml.enc", key: "config/staging.key")
```
2017-11-15 21:29:15 +01:00
..
application [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
console [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
credentials Add CLI to manage encrypted files/configs. 2017-11-15 21:29:15 +01:00
dbconsole [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
destroy [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
encrypted Add CLI to manage encrypted files/configs. 2017-11-15 21:29:15 +01:00
generate [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
help Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
new Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
plugin [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
rake Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
runner Use TOPLEVEL_BINDING in rails runner command 2017-09-22 10:42:28 +09:00
secrets Deprecate encrypted secrets in favor of credentials. 2017-11-12 17:50:09 +01:00
server [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
test [Railties] require_relative => require 2017-10-21 22:48:26 +09:00
version Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00