Rubocop "fixes"

This commit is contained in:
Gene Liverman 2019-12-26 20:40:20 -05:00
parent e6528f7c93
commit 51b9a3a332
No known key found for this signature in database
GPG key ID: 66D794FE7043CBCA
12 changed files with 33 additions and 8 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'open3'
require 'os'
require 'tty-command'

View file

@ -1,5 +1,8 @@
# frozen_string_literal: true
def existing_symlink(source, destination)
return if File.readlink(destination).eql?(source)
# rubocop:disable Metrics/LineLength
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
File.unlink(destination)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
desc 'Run dots'
task :dots do
ruby 'bin/dots.rb'