Method: YAMG::CLI#setup_for

Defined in:
lib/yamg/cli.rb

#setup_for(opts) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/yamg/cli.rb', line 21

def setup_for(opts)
  case opts
  when Hash then { 'path' => './export/' }.merge(opts)
  when String then { 'path' => opts }
  when TrueClass then { 'path' => './export/' }
  else raise
  end
end