Skip to content

Instantly share code, notes, and snippets.

@pencil
pencil / syncscript.rb
Last active October 12, 2015 14:37 — forked from petermanser/syncscript.sh
HSR Syncscript (Ruby)
#!/usr/bin/env ruby
require 'fileutils'
require 'optparse'
SOURCEDIR='/Volumes/root/skripte'
DESTDIR="/Users/#{ENV['USER']}/Dropbox/Documents/HSR/Semester5/skripte"
MAX_SIZE='20m'
Subject = Struct.new :source, :destination, :parameters
#!/usr/bin/env sh
if ! which md5sum > /dev/null; then
echo Install md5sum
exit 1
fi
if ! which curl > /dev/null; then
echo Install curl
exit 1

Navigating

visit('/projects')
visit(post_comments_path(post))

Clicking links and buttons