Revert changes to RuboCop style guide, refactor bootstrap rake task

This commit is contained in:
Ryan Lue 2018-04-26 17:38:46 +08:00
parent f541694225
commit 56a8481b64
2 changed files with 3 additions and 6 deletions

View file

@ -109,9 +109,6 @@ Layout/EmptyLinesAroundModuleBody:
Description: "Keeps track of empty lines around module bodies." Description: "Keeps track of empty lines around module bodies."
Enabled: false Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
Style/MultilineBlockChain: Style/MultilineBlockChain:
Description: 'Avoid multi-line chains of blocks.' Description: 'Avoid multi-line chains of blocks.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'

View file

@ -14,7 +14,7 @@ end
APP_CACHE = Dir.glob(Rails.root.join('tmp', 'cache*')) APP_CACHE = Dir.glob(Rails.root.join('tmp', 'cache*'))
SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log") SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log")
AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'), AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'),
destination: Rails.root.join('auto_wizard.json') }.freeze dest: Rails.root.join('auto_wizard.json') }.freeze
def flush_cache_and_logs def flush_cache_and_logs
FileUtils.rm_rf(APP_CACHE) FileUtils.rm_rf(APP_CACHE)
@ -22,7 +22,7 @@ def flush_cache_and_logs
end end
def run_auto_wizard def run_auto_wizard
FileUtils.ln(AUTO_WIZARD[:source], AUTO_WIZARD[:destination], force: true) FileUtils.ln(AUTO_WIZARD[:source], AUTO_WIZARD[:dest], force: true)
AutoWizard.setup AutoWizard.setup
# set system init to done # set system init to done