lib/enkaironment/install.rb
# rubocop was complaining about the complexity of the install step
# @param userdir [String] path to user's home directory
# @param preztodir [String] path to prezto installation
rubocop was complaining about the complexity of the install step
rubocop was complaining about the complexity of the install step
def symlink_prezto(userdir, preztodir)
        Dir.entries("#{preztodir}/runcoms/").reject { |f| f.match?(/(^README)|(^\.{1,2}$)/i) }.
          map do |rcfile|
            File.symlink("#{preztodir}/runcoms/#{rcfile}", "#{userdir}/.#{rcfile}")
          end
      end
def symlink_prezto ( userdir , preztodir ) Dir . entries ( "#{preztodir}/runcoms/" ) . reject { | f | f . match? ( / (^README)|(^ \. {1,2}$) /i ) } . map do | rcfile | File . symlink ( "#{preztodir}/runcoms/#{rcfile}" , "#{userdir}/.#{rcfile}" ) end end
rubocop was complaining about the complexity of the install step
rubocop was complaining about the complexity of the install step
userdir
path to user's home directory
path to user ' s home directory
preztodir
path to prezto installation
path to prezto installation