mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1608 from will-in-wi/rubocop_align_parameters
Enable AlignParameters cop
This commit is contained in:
commit
fb82ecea53
4 changed files with 8 additions and 10 deletions
|
@ -41,8 +41,6 @@ Style/BlockDelimiters:
|
|||
Enabled: false
|
||||
Style/ConditionalAssignment:
|
||||
Enabled: false
|
||||
Style/AlignParameters:
|
||||
Enabled: false
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
Style/Lambda:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -177,8 +177,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."
|
||||
|
|
2
spec/support/Vagrantfile
vendored
2
spec/support/Vagrantfile
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue