openSNP/snpr

View on GitHub
lib/capistrano/helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
def ln(dst, src)
  run("rm -rf '#{src}'")
  run("ln -snf '#{dst}' '#{src}'")
end

def mkdir(path)
  run("[ -d '#{path}' ] || mkdir -p '#{path}'")
end

def rake(command)
  run("cd #{current_path}; RAILS_ENV=production bundle exec rake #{command} 2>/dev/null")
end