From 56a8481b64e3a958df0b148cb03cc04d8b50516d Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Thu, 26 Apr 2018 17:38:46 +0800 Subject: [PATCH] Revert changes to RuboCop style guide, refactor bootstrap rake task --- .rubocop.yml | 3 --- lib/tasks/bootstrap.rake | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c33b2835f..293770aa7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -109,9 +109,6 @@ Layout/EmptyLinesAroundModuleBody: Description: "Keeps track of empty lines around module bodies." Enabled: false -Layout/MultilineMethodCallIndentation: - EnforcedStyle: indented_relative_to_receiver - Style/MultilineBlockChain: Description: 'Avoid multi-line chains of blocks.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks' diff --git a/lib/tasks/bootstrap.rake b/lib/tasks/bootstrap.rake index 1fe854d9a..7a6487152 100644 --- a/lib/tasks/bootstrap.rake +++ b/lib/tasks/bootstrap.rake @@ -13,8 +13,8 @@ end APP_CACHE = Dir.glob(Rails.root.join('tmp', 'cache*')) SERVER_LOG = Rails.root.join('log', "#{Rails.env}.log") -AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'), - destination: Rails.root.join('auto_wizard.json') }.freeze +AUTO_WIZARD = { source: Rails.root.join('contrib', 'auto_wizard_test.json'), + dest: Rails.root.join('auto_wizard.json') }.freeze def flush_cache_and_logs FileUtils.rm_rf(APP_CACHE) @@ -22,7 +22,7 @@ def flush_cache_and_logs end 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 # set system init to done