lib/capistrano/helpers.rb
# 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