mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 09:57:43 -04:00
Adjustments per RuboCop
This commit is contained in:
parent
441d3bf83a
commit
0500063a36
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
def existing_symlink(source, destination)
|
def existing_symlink(source, destination)
|
||||||
return if File.readlink(destination).eql?(source)
|
return if File.readlink(destination).eql?(source)
|
||||||
|
|
||||||
# rubocop:disable Metrics/LineLength
|
# rubocop:disable Layout/LineLength
|
||||||
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
|
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
|
||||||
File.unlink(destination)
|
File.unlink(destination)
|
||||||
puts "Linking #{destination} to #{source}"
|
puts "Linking #{destination} to #{source}"
|
||||||
|
|
@ -12,7 +12,7 @@ def existing_symlink(source, destination)
|
||||||
else
|
else
|
||||||
puts "#{destination} is unchanged"
|
puts "#{destination} is unchanged"
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/LineLength
|
# rubocop:enable Layout/LineLength
|
||||||
end
|
end
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue