Class: Yearbook::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/yearbook/cli.rb

Instance Method Summary collapse

Instance Method Details

#face(path, outpath = nil) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/yearbook/cli.rb', line 14

def face(path, outpath=nil)
  fpath = File.expand_path(path)
  @image = Image.new(fpath)

  outpath ||= path.sub(/(?=\.\w*$)/, '-face')
  # eh overwrite it anyway
  @image.clip_and_print_best_face(outpath)
end

#hello(from) ⇒ Object



6
7
8
# File 'lib/yearbook/cli.rb', line 6

def hello(from)
  puts "Hello world, from: #{from}"
end