Sha256: 933be22daa7b2571ae6c0c3cddd2901e697a81a2e1d0a6b48d42bb53eb328043
Contents?: true
Size: 792 Bytes
Versions: 3
Compression:
Stored size: 792 Bytes
Contents
#! /usr/bin/env ruby $LOAD_PATH.unshift(File.expand_path("../lib", File.dirname(__FILE__))) require 'optparse' require 'desoto-photoapp' options = {} OptionParser.new do |opts| opts.on("-c", "--config PATH", String, "Path to config file") do |config| options['config'] = config end end.parse! if ARGV.first == 'setup' ARGV.shift if `brew list imagemagick` =~ /Error:/ system "brew install imagemagick" end system "open #{Photoapp.gem_dir('assets/photos-action-installer.pkg')}" else if ARGV.first == 'process' ARGV.shift options['source'] = ARGV.shift Photoapp::Session.new(options).process elsif ARGV.first == 'upload' Photoapp::Session.new(options).upload elsif ARGV.first == 'reprint' ARGV.shift Photoapp.print(ARGV.shift) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
desoto-photoapp-0.1.7 | exe/photoapp |
desoto-photoapp-0.1.6 | exe/photoapp |
desoto-photoapp-0.1.4 | exe/photoapp |