Rebuild rubocop TODOs after auto-correcting
This commit is contained in:
parent
31c50255e9
commit
84dbb52d11
580 changed files with 3689 additions and 3133 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
namespace :migrate do
|
||||
desc 'Create a dotenv file from config/config.yml'
|
||||
|
|
@ -14,8 +16,8 @@ namespace :data do
|
|||
config_yml = Rails.root.join('config', 'config.yml')
|
||||
begin
|
||||
CONFIG = YAML.load_file(config_yml)[Rails.env]
|
||||
rescue
|
||||
CONFIG = {}
|
||||
rescue StandardError
|
||||
CONFIG = {}.freeze
|
||||
end
|
||||
|
||||
# Write the dotenv file
|
||||
|
|
@ -23,7 +25,7 @@ namespace :data do
|
|||
dot_env.puts "OSEM_NAME=\"#{CONFIG['name']}\""
|
||||
dot_env.puts "OSEM_HOSTNAME=\"#{CONFIG['url_for_emails']}\""
|
||||
dot_env.puts "OSEM_EMAIL_ADDRESS=\"#{CONFIG['sender_for_emails']}\""
|
||||
dot_env.puts "OSEM_ICHAIN_ENABLED=\"#{CONFIG['authentication']['ichain']['enabled']}\"" if CONFIG.has_key?(:authentication)
|
||||
dot_env.puts "OSEM_ICHAIN_ENABLED=\"#{CONFIG['authentication']['ichain']['enabled']}\"" if CONFIG.key?(:authentication)
|
||||
dot_env.puts "OSEM_TRANSIFEX_APIKEY=\"#{CONFIG['transifex_live_api_key']}\""
|
||||
dot_env.puts "OSEM_ERRBIT_HOST=\"#{CONFIG['errbit_host']}\""
|
||||
dot_env.puts "OSEM_FACTORY_LINT=\"#{CONFIG['factory_girl_lint']}\""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue