From 7fd5a55138554cc12d6f175189cc21456aa03f95 Mon Sep 17 00:00:00 2001 From: William Johnston Date: Tue, 1 Mar 2016 09:16:14 -0600 Subject: [PATCH] Enable AlignParameters cop --- .rubocop.yml | 2 -- lib/capistrano/dsl.rb | 10 +++++----- lib/capistrano/tasks/deploy.rake | 4 ++-- spec/support/Vagrantfile | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6e1f8d25..2977f3fb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -41,8 +41,6 @@ Style/BlockDelimiters: Enabled: false Style/ConditionalAssignment: Enabled: false -Style/AlignParameters: - Enabled: false Style/IfUnlessModifier: Enabled: false Style/Next: diff --git a/lib/capistrano/dsl.rb b/lib/capistrano/dsl.rb index 80360e4a..7362a965 100644 --- a/lib/capistrano/dsl.rb +++ b/lib/capistrano/dsl.rb @@ -29,11 +29,11 @@ module Capistrano def revision_log_message fetch(:revision_log_message, - t(:revision_log_message, - :branch => fetch(:branch), - :user => local_user, - :sha => fetch(:current_revision), - :release => fetch(:release_timestamp)) + t(:revision_log_message, + :branch => fetch(:branch), + :user => local_user, + :sha => fetch(:current_revision), + :release => fetch(:release_timestamp)) ) end diff --git a/lib/capistrano/tasks/deploy.rake b/lib/capistrano/tasks/deploy.rake index 677b23be..0fda3ba5 100644 --- a/lib/capistrano/tasks/deploy.rake +++ b/lib/capistrano/tasks/deploy.rake @@ -179,8 +179,8 @@ namespace :deploy do last_release_path = releases_path.join(last_release) if test "[ `readlink #{current_path}` != #{last_release_path} ]" execute :tar, "-czf", - deploy_path.join("rolled-back-release-#{last_release}.tar.gz"), - last_release_path + deploy_path.join("rolled-back-release-#{last_release}.tar.gz"), + last_release_path execute :rm, "-rf", last_release_path else debug "Last release is the current release, skip cleanup_rollback." diff --git a/spec/support/Vagrantfile b/spec/support/Vagrantfile index b7fca544..cd26710f 100644 --- a/spec/support/Vagrantfile +++ b/spec/support/Vagrantfile @@ -13,7 +13,7 @@ Vagrant.configure("2") do |config| vagrantkey = open("https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub", "r",&:read) primary.vm.provision :shell, - :inline => <<-INLINE + :inline => <<-INLINE install -d -m 700 /root/.ssh echo -e "#{vagrantkey}" > /root/.ssh/authorized_keys chmod 0600 /root/.ssh/authorized_keys