Sha256: 85c30d0e1083270ed9bdab28d08e68745f13a3ef07ceed13f45b037bf1bc71d9
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
#!/usr/bin/env ruby require "dribbble_bucket_sync" unless ARGV.size == 2 raise ArgumentError, "Must have 2 arguments: username and output directory" end username = ARGV[0] directory = ARGV[1] unless File.directory?(directory) raise ArgumentError, "Directory does not exist: #{directory}" end puts "Starting synchronisation..." # start the synchronisation DribbbleBucketSync.new(username).sync_to(directory) puts "Synchronisation complete." system("open #{directory}")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dribbble-bucket-sync-0.0.2 | bin/dribbble_bucket_sync |
dribbble-bucket-sync-0.0.1 | bin/dribbble_bucket_sync |